Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Watch new files in directory NIFI

Tags:

apache-nifi

I'm having a use case where I have new files everyday at differents moments like every hour or two hours so I need to watch a directory in my folder, and on adding new files it triggers an event which sends those new files paths to my webservice on NIFI , any idea how to implement this and what tool to use for this ?

Or maybe this is not the best approach ?

like image 279
azelix Avatar asked Nov 25 '25 12:11

azelix


1 Answers

Take a look at the ListFile and FetchFile processors:

https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-standard-nar/1.5.0/org.apache.nifi.processors.standard.ListFile/index.html

https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-standard-nar/1.5.0/org.apache.nifi.processors.standard.FetchFile/index.html

Complete NiFi documentation can be found at https://nifi.apache.org/docs.html

like image 192
Bryan Bende Avatar answered Nov 28 '25 16:11

Bryan Bende



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!