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

Transfer flow files using NiFi Rest API


Transfer flow files using NiFi Rest API

I'm looking for a way to transfer flowfiles from one processor group to another processor group's input port using the NiFi's rest API. The rest API doc is kinda vague. I assume the "Data Transfer API" section is the one I should be interested in. I was going through the same but couldn't get it to work.

I wanted to try this endpoint: http://localhost/nifi-api/data-transfer/input-ports/{portId}/transactions/{transactionId}/flow-files

I know I can get the portId from the NiFi UI but what about the transactionId.

Note: I thought that we may have to create a transaction ourselves using "/data-transfer/{portType}/{portId}/transactions" so I tried http://localhost/nifi-api/data-transfer/input-ports/xxxxx-xx-xxx-xx/transactions but it says "The requested port with id "xxxxxx" is not found in root level". I have this port not in root but inside a processor group then how should I give that here?


Re: Transfer flow files using NiFi Rest API


Even, I cant find how one can get transactionId.. Any help greatly appreciated!

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