Created on 06-25-201806:31 PM - edited 08-17-201907:07 AM
About a year ago, I wrote an article that detailed how to use the
ConvertRecord processor and Record Reader/Writer controller services to easily convert a CVS file into various formats (JSON, Avro, XML):
Note: Change the extension from .txt to .csv after downloading.
Start NiFi. Import the provided template and add it to the canvas.
You should see the following flow:
Note: After importing the template, create or make sure the directory paths for the GetFile and PutFile processors exist, confirm users.csv is in the input directory and enable all Controller Services before running the flow:
Details of the original flow are covered in my previous HCC article, but here are the key changes made: