I am using Apache NiFi to process a huge amount of CSV files. Within the process, I identify if this file is valid or not - in both ways I want to delete the file. Either if it is not needed or after the finished processing. For this I use the ExecuteStreamCommand processor with the following configuration:
Command Arguments|-f;${absolute.path}${filename}
Command Path|/bin/rm
Ignore STDIN|true
Working directory|not set
Argument delimiter|;
Output destination attribute|not set
Max attribute length|256
The process indeed works and delete files wherever this processor is integrated. But in the real system with 1500 files per hour only approx 30% of the files get deleted. This leads to a full file share and the system stops working because no further data arrives. The odd thing - I don't get any exception in the logs. Does anybody know why this is not working properly?