<?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>question Re: Hash field in Nifi (SHA2_512) in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hash-field-in-Nifi-SHA2-512/m-p/283882#M75024</link>
    <description>&lt;P&gt;I did explore the way to hash and dynamically can extract data as csv or avro as default by developing a custom processor. You can download the processor from &lt;A title="nifi-HashColumn-nar-1.0.nar" href="https://github.com/vanducng/hashing-columns-nifi-processor/blob/master/misc/nifi-HashColumn-nar-1.0.nar" target="_self"&gt;HERE&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;The full source code is shared from here, feel free to contribute for further functionalities.&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/vanducng/hashing-columns-nifi-processor" target="_blank"&gt;https://github.com/vanducng/hashing-columns-nifi-processor&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 23 Nov 2019 16:51:32 GMT</pubDate>
    <dc:creator>vanducng</dc:creator>
    <dc:date>2019-11-23T16:51:32Z</dc:date>
    <item>
      <title>Hash field in Nifi (SHA2_512)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hash-field-in-Nifi-SHA2-512/m-p/231456#M75022</link>
      <description>&lt;P&gt;Hi, guys,&lt;/P&gt;&lt;P&gt;I have a data flow in Nifi that gets a file from the server and converts it to Avro to stream data to Hive. In this flow, I have some sensitive information that I need to hash (SHA2_512). I checked that Nifi has a couple of processors to work with hash, but it seems they only do this for the whole file. Is there a way to hash a specific field? Before converting to Avro, my flow files are coming from the server as fields separated by pipes ('|').&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2018 00:17:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hash-field-in-Nifi-SHA2-512/m-p/231456#M75022</guid>
      <dc:creator>crodriguesfilho</dc:creator>
      <dc:date>2018-02-27T00:17:00Z</dc:date>
    </item>
    <item>
      <title>Re: Hash field in Nifi (SHA2_512)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hash-field-in-Nifi-SHA2-512/m-p/231457#M75023</link>
      <description>&lt;P&gt;For algorithms that don't require secret information, I think it could be helpful to add such functions to NiFi Expression Language, although they don't exist right now (please feel free to file a &lt;A href="https://issues.apache.org/jira/browse/NIFI" target="_blank"&gt;Jira&lt;/A&gt; to add such a capability). With this capability you could use &lt;A href="https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-standard-nar/1.5.0/org.apache.nifi.processors.standard.UpdateRecord/index.html" target="_blank"&gt;UpdateRecord&lt;/A&gt; to replace a field with its hashed value.&lt;/P&gt;&lt;P&gt;In the meantime, if you are comfortable with a scripting language such as Groovy, Javascript, Jython, JRuby, Clojure, or Lua, you could write a &lt;A href="https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-scripting-nar/1.5.0/org.apache.nifi.lookup.script.ScriptedLookupService/index.html" target="_blank"&gt;ScriptedLookupService&lt;/A&gt; that can "lookup" a specified field by returning the hash of its value.  Then you can use &lt;A href="https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-standard-nar/1.5.0/org.apache.nifi.processors.standard.LookupRecord/index.html" target="_blank"&gt;LookupRecord&lt;/A&gt; with that service to get the hashed values. Alternatively you could implement a &lt;A href="https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-scripting-nar/1.5.0/org.apache.nifi.record.script.ScriptedRecordSetWriter/index.html" target="_blank"&gt;ScriptedRecordSetWriter&lt;/A&gt; that is configured to hash the values of the specified field(s), and then &lt;A href="https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-standard-nar/1.5.0/org.apache.nifi.processors.standard.ConvertRecord/index.html" target="_blank"&gt;ConvertRecord&lt;/A&gt; with that writer.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2018 00:40:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hash-field-in-Nifi-SHA2-512/m-p/231457#M75023</guid>
      <dc:creator>mburgess</dc:creator>
      <dc:date>2018-02-27T00:40:17Z</dc:date>
    </item>
    <item>
      <title>Re: Hash field in Nifi (SHA2_512)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hash-field-in-Nifi-SHA2-512/m-p/283882#M75024</link>
      <description>&lt;P&gt;I did explore the way to hash and dynamically can extract data as csv or avro as default by developing a custom processor. You can download the processor from &lt;A title="nifi-HashColumn-nar-1.0.nar" href="https://github.com/vanducng/hashing-columns-nifi-processor/blob/master/misc/nifi-HashColumn-nar-1.0.nar" target="_self"&gt;HERE&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;The full source code is shared from here, feel free to contribute for further functionalities.&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/vanducng/hashing-columns-nifi-processor" target="_blank"&gt;https://github.com/vanducng/hashing-columns-nifi-processor&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 23 Nov 2019 16:51:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hash-field-in-Nifi-SHA2-512/m-p/283882#M75024</guid>
      <dc:creator>vanducng</dc:creator>
      <dc:date>2019-11-23T16:51:32Z</dc:date>
    </item>
  </channel>
</rss>

