Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

Nifi : putHDFS losing Data

avatar
Rising Star

Hi All,

When putHdfs Process with Data what happen if the Nifi node crash or if fail to write to HDFS ?

It is possible to rerun a specific flowfile ?

Regards

1 ACCEPTED SOLUTION

avatar
Master Guru

If it failed to write the data to HDFS it would transfer the flow file to the failed relationship, which you route back to itself to keep re-trying, or route to whatever you want to do to handle the error.

If the NiFi node crashed while it was in process of writing the data, but hadn't committed the session in the processor, then when the node restarts that flow file will still be in the queue before the processor and will be tried again.

There should not be data loss.

View solution in original post

2 REPLIES 2

avatar
Master Guru

If it failed to write the data to HDFS it would transfer the flow file to the failed relationship, which you route back to itself to keep re-trying, or route to whatever you want to do to handle the error.

If the NiFi node crashed while it was in process of writing the data, but hadn't committed the session in the processor, then when the node restarts that flow file will still be in the queue before the processor and will be tried again.

There should not be data loss.

avatar
Rising Star

Thanks. It is very clear.