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.

Does Nifi ExecuteStreamCommand make synchronous or asynchronous calls ?

Does Nifi ExecuteStreamCommand make synchronous or asynchronous calls ?

I have an ExecuteStreamCommand Nifi processor that calls a python program with command line arguments. The python program gets flowfile from stdin and executes some operation on it and writes back the output to the stdout. Does ExecuteStreamCommand block the thread until python code finishes writing the output or it just issues the command in the background and releases the thread for other Nifi processors to use ?

1 REPLY 1
Highlighted

Re: Does Nifi ExecuteStreamCommand make synchronous or asynchronous calls ?

It is synchronous... there is a thread executing the processor's onTrigger command, and a single call to onTrigger should execute your script and write the results to the flow file.

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