I have a QueryDatabaseTable component that extracts thousands of rows from a table. I want to hash one of those values before writing the updated avro or json to hdfs. It looks like the HashContent component hashes the whole content - whereas I only wish to hash one of the values in each row.
How can I do this?
Did you check the HashAttribute processor ?
It looks like it will do what you are looking for.
I don't think that helps. I want to be able to apply a sha-256 hash to one of my values.
Any other suggestions? Seems like a common enough use case..
You are correct. I missed the fact that the processor hashes attributes together rather than apply an sha hash. My bad. It looks like no processor is available to do this today, but NIFI-2961 has been opened to address this given requirement. The suggested alternative would be to do it through ExecuteScript processor. Please check the following thread for further details: http://apache-nifi-users-list.2361937.n4.nabble.com/Encryption-and-Hashing-in-Nifi-td2307.html