I have text like this in a file. This file was created by PutFile processor. I need to sort these rows based on the first column. How to sort in NiFi? Should I write custom processor to sort the rows in this file?
You can also use execute stream command and bypass the PutFile. The Execute Stream command processor triggers on an incoming flowfile and can execute the 'sort' on the contents and output the results to the next processor.
This approach keeps everything streaming through memory.