Support Questions

Find answers, ask questions, and share your expertise

NiFi, HDFS: Knowing and handling if file exists before writing with PutHDFS

avatar
Rising Star

In PutHDFS I have set Conflict Resolution Strategy to Fail as I don't want to overwrite existing files. But for error handling and logging/notification, I need to differentiate file-exist fails from other types of fails from this processor. How is that possible?

In bulletin board I can see a text message from the processor indicating when file exists, but how do I get that info in the flow itself? Is the message / fail type available for flow control handling somehow?

Suggestions?

1 REPLY 1

avatar
Rising Star

I see GetHDFSFileInfo from 1.7 might be relevant. Running 1.5 currently though. Suggestions on that platform?