[
https://issues.apache.org/jira/browse/NIFI-6255?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16832669#comment-16832669
]
Bryan Bende commented on NIFI-6255:
-----------------------------------
I think we should consider adding hash functions to EL and/or record-path which
would eliminate the need for a new processor because then it could be done with
UpdateRecord.
If hashing with EL, then in UpdateRecord you could do:
{code:java}
/fieldA = ${hash(ALGORITHM, field.value)}{code}
If hashing with record-path, then in UpdateRecord you could do:
{code:java}
/fieldA = hash(ALGORITH, /fieldA){code}
> Allow NiFi to hash specific attributes of a record
> --------------------------------------------------
>
> Key: NIFI-6255
> URL: https://issues.apache.org/jira/browse/NIFI-6255
> Project: Apache NiFi
> Issue Type: New Feature
> Components: Extensions
> Affects Versions: 2.0.0
> Reporter: Nathan Bruce
> Priority: Trivial
>
> Create a processor for NiFi to read in a file of records through the Record
> Reader service and hash specific keys within the record.
> The processor will accept a comma delimited list of strings that would
> specify the keys to be hashed, as an attribute. If the keys specified are not
> present in a given record, the processor should continue without resulting in
> a failure.
> The processor will have a list of hashing algorithms to be applied to the
> record, as well as an optional salt.
> The hashed value will replace the current value stored for the given key then
> passed on to the Record Writer service.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)