How to get data transfer completion status in nifi for SFTP transfer

268 views Asked by At

I have created a flow in nifi to transfer data from one linux machine to another linux machine.

Flow is like this:

GetSFTP-->UpdateAttribute-->PutSFTP

Everything I am managing through nifi APIs, i.e. creating, updating attributes and starting of flow using nifi APIs.

How can I get the completion status of data transfer, so that I can stop the flow.

Thanks.

1

There are 1 answers

1
Bryan Bende On BEST ANSWER

The concept of being "complete" is something that NiFi can't really know here. How would NiFi know that another file isn't going to be added to the directory where GetSFTP is watching?

From NiFi's perspective the dataflow is running until someone says to stop it. It is not really meant to be a job system where you submit a job that starts and completes, it is a running dataflow that handles an infinite stream of data.