I have a csv file with 10 fields. I need to lookup hbase to get a value corresponding to one of the csv fields. The resultant hbase field should be appended to the csv file. Using Nifi, I built the following flow.
GenerateFlowFile (create a csv record) --> UpdateRecord(configured avro schema name to read incoming csv file) --> ConvertRecord (configured CSV Reader & JSON writer) --> SplitJSON --> EvaluateJSONPath(to fetch the row key for hbase lookup) --> FetchHBaseRow (got the output as a flow-file attribute)
Now, the challenge is to read the contents of the attribute 'hbase.row' which is a JSON, pick one of the field-value pair, append it to the flow file content