Support Questions

Find answers, ask questions, and share your expertise

NIFI API and Provenance info - Unable to get info out

avatar
New Contributor

When I try to run a query against the nifi 2.5.0 API to get info about provenance activities, it seems to be quite difficult.

I installed NIfi on my PC with no modifications and all default settings, and just use the default user and password that's created when you install it.

I run this in my local windows CMD window and get   "unknown error" :

curl --insecure -X DELETE -H "Authorization: Bearer <my token> " https://localhost:8443/nifi-api/provenance/queries

Then I run this and get : 

curl --insecure -X DELETE -H "Authorization: Bearer <token>" https://localhost:8443/nifi-api/provenance/queries > test.txt

In text.txt file I get :

"An unexpected error has occurred. Please check the logs for additional details."

I'm starting to think the Provenance part of the API might be broken as it shouldn't be this hard?

I ran other API queries and they work fine.

What I'm trying to do is get a list of all files that have passed through my small local nifi installation so we can track what files have moved through nifi and when, as a form of monitoring.

Any help appreciated!

Thanks in advance.

 

1 REPLY 1

avatar
Community Manager

@zzzz77, Welcome to our community! To help you get the best possible answer, I have tagged in our NiFi experts @MattWho @haridjh , who may be able to assist you further.

Please feel free to provide any additional information or details about your query. We hope that you will find a satisfactory solution to your question.



Regards,

Vidya Sargur,
Community Manager


Was your question answered? Make sure to mark the answer as the accepted solution.
If you find a reply useful, say thanks by clicking on the thumbs up button.
Learn more about the Cloudera Community: