Member since
02-27-2018
4
Posts
1
Kudos Received
0
Solutions
03-13-2018
12:16 PM
@Shu Thanks for your reply, I actually had the Destination within EvaluateJsonPath properties wrong. I changed it to flow-file attribute and it is working now.
... View more
03-12-2018
11:26 AM
I am using EvaluateJsonPath to extract the data associated with a Json file "progress_percentage". The Json value is placed in an attribute ProgressPercentage. I am then trying to use Route on attribute to determine if the progress percentage has reached 100%. I can see the value 100 is extracted in the provenance data, but I can't seem to find the correct expression language to perform the evaluation successfully. The "route" is always failed to match. A Json snippet and the RouteOnAttribute Properties window is attached.
... View more
- Tags:
- expression-language
03-05-2018
12:01 PM
@Michael Young Thanks! I was able to get it to work with ExecuteStreamCommand, I was just hoping there would be a way to do it through InvokeHttp.
... View more
02-28-2018
11:54 AM
1 Kudo
I need to send an HTTP POST or PUT request. The request provides a 1 line json response when sent correctly. I want to capture the response and send it as a get request. I can use this curl command to successfully send the request: curl http://10.1.10.13/api/tiscale/v1/upload -F file=@/somepath/somefilename I tried various scenarios with InvokeHttp and HttpPost, but the response comes back as either a 400 BAD REQUEST or 500 SERVER ERROR. Here is the request I tried last from the app log file. 2018-02-27 15:06:00,536 DEBUG [Timer-Driven Process Thread-1] o.a.nifi.processors.standard.InvokeHTTP InvokeHTTP[id=d25f484f-0161-1000-d92d-c1fe227a25a3]
Request to remote service:
http://10.1.10.13/api/tiscale/v1/upload
date: Tue, 27 Feb 2018 20:06:00 GMT
file: =@"/opt/nifi-1.5.0/testfiles/CyberAwarenessChallengeCertificate.pdf" This request produced a 400 response.
... View more