ListFile processor is not detecting any changes to a previously processed file and reprocess it. FYI, I have tried the following options already for reprocessing and only the finally mentioned hack is working. This is in a single-node NiFi I am running in my development environment.
- Update Scenario: ListFile processor is not detecting file content changes and trigger automatically post-update (i.e file updates using VIM editor)
- Timestamp modification Scenario: Changing the file timestamp with
touch -ccommand changes the file timestamp but this does not cause auto-trigger of the ListFile processor either. - Stop-start Scenario: Stop-start of the whole process group in NiFi after changing the file as mentioned above also does not cause triggering of ListFile processor.
- Waiting Clause: Waiting for long enough after file change also does not help - just in case we assume it will auto-trigger after some delay.
- HACK: The only way I am able to trigger the re-processing of the file by ListFile processor is by changing the wildcard expression for "File Filter" in ListFile processor in a harmless, idempotent manner, for example from
.*test.*\.csvtotest.*\.csvand vice versa later (i.e go back and forth like this for repeated reprocessing).
Reprocessing of files with same old names and with modified data is a requirement for us. Please help!
And sometimes forced reprocessing of even an unmodified file could be required in case of unanticipated data issues upstream/downstream. Please help!
UPDATE
Still facing this sporadic behavior! Only restart of NiFi helps when the ListFile processor fails to respond to file change.
ListFileprocessor has this configuration:Minimum File Age=0 sec,Maximum File Age is empty,Minimum File Size=0B,Maximum File Size is empty. - Jagrut SharmaListFileconfiguration? And which version of NiFi are you using? - Sivaprasanna Sethuraman