<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to implement MD5 mechanism ? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-implement-MD5-mechanism/m-p/2319890#M90086</link>
    <description>Hi,
&lt;BR /&gt;Are you looking for a custom component tMD5Sum on talend exchange portal?
&lt;BR /&gt;
&lt;A href="https://exchange.talend.com/#marketplaceproductoverview:gallery=marketplace%2F1&amp;amp;pi=marketplace%2F1%2Fproducts%2F524%2Fitems%2F774" target="_blank" rel="nofollow noopener noreferrer"&gt;https://exchange.talend.com/#marketplaceproductoverview:gallery=marketplace%252F1&amp;amp;pi=marketplace%252F1%252Fproducts%252F524%252Fitems%252F774&lt;/A&gt;
&lt;BR /&gt;Have you tried to install it into studio to see if it works?
&lt;BR /&gt;Here is a KB article about:
&lt;A href="https://help.talend.com/search/all?query=Installing+a+custom+component" target="_blank" rel="nofollow noopener noreferrer"&gt;TalendHelpCenter:Installing a custom component&lt;/A&gt;
&lt;BR /&gt;Best regards
&lt;BR /&gt;Sabrina</description>
    <pubDate>Mon, 10 Oct 2016 07:36:44 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-10-10T07:36:44Z</dc:date>
    <item>
      <title>How to implement MD5 mechanism ?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-implement-MD5-mechanism/m-p/2319889#M90085</link>
      <description>&lt;P&gt;I have a set of csv files which load in daily but do not have an audit date columns and a Primary key as well to identify a new record.&lt;BR /&gt;I want to implement MD5 mechanism to help distinguish the new records. I am using the Talend Big Data v6.2&lt;BR /&gt;I tried to implement the logic given in this link &amp;nbsp;:&amp;nbsp;&lt;A href="https://community.qlik.com/s/feed/0D53p00007vCk24CAC" target="_blank"&gt;https://community.talend.com/t5/Design-and-Development/Getting-the-MD5-hash-of-a-database-record-field/m-p/71553&lt;/A&gt;&lt;BR /&gt;and also imported tMD5Sum&lt;FONT color="#3c3c3c"&gt;&lt;FONT size="2"&gt;&lt;FONT face="noto"&gt;.zip&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;When I import the routine using (Select archive file option) it &amp;nbsp;says &amp;nbsp;'No valid item to import'.&amp;nbsp;&lt;BR /&gt;&lt;FONT color="#333333"&gt;I copy pasted the syntax from tMD5Sum_main.javajet file but to no avail.&lt;BR /&gt;&lt;/FONT&gt;&lt;BR /&gt;Is there any way I can link this routine from the exchange and pull it direcly to my workspace or&lt;BR /&gt;is there any easy way out to solve a problem of this sort without implementing the Hash key mechanism?&lt;BR /&gt;My target dB is Cassandra 2.0.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT color="#34393e"&gt;&lt;FONT face="noto"&gt;Code :&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;lt;%@ jet&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;imports="&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; org.talend.core.model.process.INode&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; org.talend.core.model.process.ElementParameterParser&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; org.talend.core.model.metadata.IMetadataTable&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; org.talend.core.model.metadata.IMetadataColumn&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; org.talend.core.model.process.IConnection&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; org.talend.core.model.process.IConnectionCategory&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; org.talend.designer.codegen.config.CodeGeneratorArgument&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; java.util.List&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; org.talend.core.model.metadata.types.JavaTypesManager&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; org.talend.core.model.metadata.types.JavaType&lt;BR /&gt;&lt;BR /&gt;"&lt;BR /&gt;&lt;BR /&gt;%&amp;gt; &lt;BR /&gt;&lt;BR /&gt;&amp;lt;%&lt;BR /&gt;&lt;BR /&gt;CodeGeneratorArgument codeGenArgument = (CodeGeneratorArgument) argument;&lt;BR /&gt;&lt;BR /&gt;INode node = (INode)codeGenArgument.getArgument();&lt;BR /&gt;&lt;BR /&gt;String cid = node.getUniqueName();&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;String fileName = ElementParameterParser.getValue(node, "__FILENAME__"); &lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;String outputConnName = null;&lt;BR /&gt;&lt;BR /&gt;List&amp;lt; ? extends IConnection&amp;gt; conns = node.getOutgoingSortedConnections();&lt;BR /&gt;&lt;BR /&gt;if (conns!=null) {&lt;BR /&gt;&lt;BR /&gt;if (conns.size()&amp;gt;0) {&lt;BR /&gt;&lt;BR /&gt;for (int i=0;i&amp;lt;conns.size();i++) {&lt;BR /&gt;&lt;BR /&gt;IConnection connTemp = conns.get(i);&lt;BR /&gt;&lt;BR /&gt;if (connTemp.getLineStyle().hasConnectionCategory(IConnectionCategory.DATA)) {&lt;BR /&gt;&lt;BR /&gt;outputConnName = connTemp.getName();&lt;BR /&gt;&lt;BR /&gt;break;&lt;BR /&gt;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;if (outputConnName != null){&lt;BR /&gt;&lt;BR /&gt;%&amp;gt; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;lt;%=outputConnName %&amp;gt; = new &amp;lt;%=outputConnName %&amp;gt;Struct();&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;lt;%=outputConnName %&amp;gt;.filename = &amp;lt;%=fileName %&amp;gt;;&lt;BR /&gt;&lt;BR /&gt;&amp;lt;%=outputConnName %&amp;gt;.md5_sum = com.ostermiller.util.MD5.getHashString(new java.io.File(&amp;lt;%=fileName %&amp;gt;));&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;lt;%&lt;BR /&gt;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;%&amp;gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 10:21:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-implement-MD5-mechanism/m-p/2319889#M90085</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T10:21:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to implement MD5 mechanism ?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-implement-MD5-mechanism/m-p/2319890#M90086</link>
      <description>Hi,
&lt;BR /&gt;Are you looking for a custom component tMD5Sum on talend exchange portal?
&lt;BR /&gt;
&lt;A href="https://exchange.talend.com/#marketplaceproductoverview:gallery=marketplace%2F1&amp;amp;pi=marketplace%2F1%2Fproducts%2F524%2Fitems%2F774" target="_blank" rel="nofollow noopener noreferrer"&gt;https://exchange.talend.com/#marketplaceproductoverview:gallery=marketplace%252F1&amp;amp;pi=marketplace%252F1%252Fproducts%252F524%252Fitems%252F774&lt;/A&gt;
&lt;BR /&gt;Have you tried to install it into studio to see if it works?
&lt;BR /&gt;Here is a KB article about:
&lt;A href="https://help.talend.com/search/all?query=Installing+a+custom+component" target="_blank" rel="nofollow noopener noreferrer"&gt;TalendHelpCenter:Installing a custom component&lt;/A&gt;
&lt;BR /&gt;Best regards
&lt;BR /&gt;Sabrina</description>
      <pubDate>Mon, 10 Oct 2016 07:36:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-implement-MD5-mechanism/m-p/2319890#M90086</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-10-10T07:36:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to implement MD5 mechanism ?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-implement-MD5-mechanism/m-p/2319891#M90087</link>
      <description>thank you , it worked like a charm,&lt;BR /&gt;&amp;nbsp;Are there any solved examples on tMD5Sum component as I couldnt find any online.</description>
      <pubDate>Tue, 11 Oct 2016 11:12:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-implement-MD5-mechanism/m-p/2319891#M90087</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-10-11T11:12:02Z</dc:date>
    </item>
  </channel>
</rss>

