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] Bug with API - disconnected nodes with curl

[NIFI] Bug with API - disconnected nodes with curl

Explorer

Hi all,

Do you know why my node disconnected when I'm doing some POST/GET/DELETE with api ?

params = {"provenance":{"request":{"maxResults":1000,"summarize":"true","incrementalResults":"false","startDate":"08/23/2017 00:00:00 CEST","endDate":"08/23/2017 23:59:59 CEST","clusterNodeId":"dae75344-81ca-
4251-81b3-3476e9750f3f","searchTerms":{"EventType":"SEND","ProcessorID":"0dd63d71-8620-1ce1-be9d-587c5f6ec679"}}}}

#This curl to receice provenance ID
curl -vv  -H "Content-type: application/json" -XPOST 'https://nifi001:9443/nifi-api/provenance' --data-binary $params 

#this curl to get provenance
curl -vv  -H "Content-type: application/json" -XGET 'https://nifi001:9443/nifi-api/provenance/0dddacc8-015e-1000-0000-000025863d27'

# this curl for delete
curl -vv  -H "Content-type: application/json" -XDELETE 'https://nifi001:9443/nifi-api/provenance/0dddacc8-015e-1000-0000-000025863d27'


08/23/2017 08:53:43 CEST: Node Status changed from CONNECTED to 
DISCONNECTED due to Failed to process request DELETE 
/nifi-api/provenance/0dddacc8-015e-1000-0000-000025863d27

thanks

2 REPLIES 2

Re: [NIFI] Bug with API - disconnected nodes with curl

Explorer

I've same error if I've launch multiple POST to query the dataprovenance ID

08/23/2017 09:22:02 CEST: Node Status changed from CONNECTED to 
DISCONNECTED due to Failed to process request POST /nifi-api/provenance

Re: [NIFI] Bug with API - disconnected nodes with curl

@mayki wogno can you upload logs from the nifi-app.log when you run your curl command.

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