For testing purpose, I would like to stream (generate output on a periodic time interval) of rows of a CSV file.
When the file gets to the end, it restarts from the beginning of the file.
How to do it using processors or scripting?
You can use the SplitText processor to create multiple flow files for a large block of text.
To replay the file periodically, you can use the GetFile processor to read the file - there's an option to 'Keep Source File' so that NiFi does not delete the file once it pulls it in. The processor additionally will have a schedule when you click into the Properties - you can set this schedule to 5 seconds, 5 minutes, or anything else you'd like.