Created 10-30-2017 04:07 PM
Hi,
I have scheduled a getfile processor in nifi on cron schedule, running every minute (0 0/1 * * * ?).
The above runs properly and gets a file every minute, but the processor is running multiple times(atleast 2-3) and showing warning almost every time (because it could not ingest the file, as it has ingested already and no file is present).
How to avoid this, and make the processor stop till next schedule once the file is ingested.
Could you please suggest
Created 10-30-2017 05:00 PM
Flow:-
1.ListFile //list all the files from directory. 2.FetchFile //fetch the listed file. 3.ExecuteStreamCommand //shell script to delete file from directory.
Refer to below link how to pass attributes to the ExecuteStreamCommand processor script.
https://pierrevillard.com/2016/03/09/transform-data-with-apache-nifi/
Created 10-30-2017 05:00 PM
Flow:-
1.ListFile //list all the files from directory. 2.FetchFile //fetch the listed file. 3.ExecuteStreamCommand //shell script to delete file from directory.
Refer to below link how to pass attributes to the ExecuteStreamCommand processor script.
https://pierrevillard.com/2016/03/09/transform-data-with-apache-nifi/