Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

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

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

Explorer

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
Highlighted

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

Explorer

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

Don't have an account?
Coming from Hortonworks? Activate your account here