- Subscribe to RSS Feed
- Mark as New
- Mark as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
Created on 06-30-2017 11:09 PM - edited 08-17-2019 12:10 PM
While designing your flow, one will think of handling failures as well. Some may ignore (terminate) it while some may want to analyze their failed flow files.
You can view/download any flowfile in the connection via NiFi UI. However if there are multiple flowfiles then this becomes little tedious since you have to do it for each flowfile. .
In that case, I used below flow to put all failed flow files to a temp location on my nifi node and then access it from there for further analysis.
- In this I am generating random 2B text file and passing it to FTP server.
- If FTP server is unreachable it will put all flow files to failure/reject queue.
- You can list all files in this queue. I have viewed one such file in image below.
- Then all these files are passed to PutFile processor which is configured to write all the files it receives to /tmp/test location on the nifi node.
Please note: There could be multiple ways to do this. This is the approach used by me to quickly download all failed flow files in my flow.
download-failed-flowfiles-2.png
download-failed-flowfiles-3.png
download-failed-flowfiles-4.png
download-failed-flowfiles-5.png