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] : executeStreamCommand issue

[NIFI] : executeStreamCommand issue

New Contributor

Hi all,

It seems that executeStreamCommand don't delete flowFile.

The script bash worked but the queue will not empty after successful execution of script

17641-executestream.jpg

17642-queue-not-empty.jpg

3 REPLIES 3
Highlighted

Re: [NIFI] : executeStreamCommand issue

New Contributor

Re: [NIFI] : executeStreamCommand issue

Super Guru

Dont do a curl

Use GetHTTP or InvokeHTTP those work perfect.

Most likely permissions, make sure the nifi user can run that script. make sure it's the right path.

run that script from the command line, su to the nifi user and put in the full path. then check logs

check the logs and data provenance.

i use executestreamcommand for calling Python and TensorFlow.

Make sure whatever you call is wrapped in a shell script and that it has execute permissions.

https://community.hortonworks.com/questions/9509/connecting-to-datasift-https-api-using-nifi.html

Don't call a Hive Script. Use The Execute HiveQL

https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-hive-nar/1.3.0/org.apache.nif...

https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-standard-nar/1.3.0/org.apache...

Re: [NIFI] : executeStreamCommand issue

New Contributor

@timothy

Il have to make a curl to retrieve the data from an API. And to connect to this API I need first to make a curl to retrieve token and digest, these parameters do not exist in Nifi http processor.

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