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.

Calling extern REST Service from NIFI

Highlighted

Calling extern REST Service from NIFI

Rising Star

Hi,

I need to configure a NIFI flow thats invoke a jenkins built on a remote server. The curl command works fine from trhe cmd line of my nifi host

curl "http://myuser:mypassword@sktpprdjci01.ccta.dk/jenkins/job/prod-jobs-batch/job/testModel02_batch/buildWithParameters?token=8eabad81fd14bb3f0e8a&model_args=20170829"

I tried to configure this using InvokeHTTP processor

using UpDateAttribute to set the attributes

token = 8eabad81fd14bb3f0e8a

model_args = model_args=20170829

and referring to them in the attributes to send field.

38463-resthjælp-nifi.png

But it ends up in the no retry queue every time.

Am i using the right processor ?

How should it be configured given the current curl command ?

Best regards Simon

1 REPLY 1
Highlighted

Re: Calling extern REST Service from NIFI

@Simon Jespersen

Try using the ExecuteStreamCommand processor. When I am using curl commands, I have found putting them into a script and then running the script with that processor seems to work very well and is simple to implement.

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