- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Apache Nifi - How to use REST api for provenance related search
- Labels:
-
Apache NiFi
Created ‎09-02-2016 01:42 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I want to perform provenance search through REST (to retrieve data and utilize it for monitoring etc).
- Currently I dont know what is the correct format for calling /provenance endpoint (essentially doing search, not sure how to specify the search query itself). I tried following on browser, but see a blank page: http://localhost:8080/nifi-api/provenance?uuid=c94ea102-ff9d-4985-a548-fa6611d50e8a
- Following api end point works: http://localhost:8080/nifi-api/provenance/search-options
Any help in resolving this would be highly appreciated.
Thanks
Obaid
Created ‎09-02-2016 01:52 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Obaid,
You can go to help in NiFi and bring up the docs. Scroll down on the left hand pane to the section titled 'developer' and select REST API. The docs can also be found here https://nifi.apache.org/docs.html
From there you can select 'provenance' to get a detailed breakdown of the requests and information necessary for the requests. A really good thing to do is use Chrome's developer tools and use the NiFi UI to create requests. Then you can see precisely what is being done by NiFi's client and you can then emulate the same thing programatically.
Thanks
Joe
Created ‎09-02-2016 01:52 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Obaid,
You can go to help in NiFi and bring up the docs. Scroll down on the left hand pane to the section titled 'developer' and select REST API. The docs can also be found here https://nifi.apache.org/docs.html
From there you can select 'provenance' to get a detailed breakdown of the requests and information necessary for the requests. A really good thing to do is use Chrome's developer tools and use the NiFi UI to create requests. Then you can see precisely what is being done by NiFi's client and you can then emulate the same thing programatically.
Thanks
Joe
