<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Nifi- how to get provenance event id in nifi? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-how-to-get-provenance-event-id-in-nifi/m-p/154686#M44757</link>
    <description>&lt;P&gt;hi. provenance id is changing.every id can be used once,you can't use the provenance id to get "/provenance-events/{id}" again,you can get id and get the url directly.&lt;/P&gt;</description>
    <pubDate>Thu, 03 Nov 2016 09:36:05 GMT</pubDate>
    <dc:creator>565109424</dc:creator>
    <dc:date>2016-11-03T09:36:05Z</dc:date>
    <item>
      <title>Nifi- how to get provenance event id in nifi?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-how-to-get-provenance-event-id-in-nifi/m-p/154682#M44753</link>
      <description>&lt;P&gt;Is there any way to get provenance event id? In nifi-rest api ,I want to get a provenance event use  /provenance-events/{id}, What should I do? Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Oct 2016 17:42:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-how-to-get-provenance-event-id-in-nifi/m-p/154682#M44753</guid>
      <dc:creator>565109424</dc:creator>
      <dc:date>2016-10-28T17:42:11Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi- how to get provenance event id in nifi?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-how-to-get-provenance-event-id-in-nifi/m-p/154683#M44754</link>
      <description>&lt;P&gt;
	You can send a 
	&lt;CODE&gt;POST&lt;/CODE&gt; request to &lt;CODE&gt;&lt;A href="https://host:port/nifi-api/provenance" target="_blank"&gt;https://host:port/nifi-api/provenance&lt;/A&gt;&lt;/CODE&gt; which will submit a provenance query. The contents of this request should be &lt;CODE&gt;{"provenance":{"request":{"maxResults":1000}}}&lt;/CODE&gt; (with a configurable count). The response will contain an identifier for the query (as it may take a long time to execute). You can then submit a &lt;CODE&gt;GET&lt;/CODE&gt; request to &lt;CODE&gt;&lt;A href="https://host:port/nifi-api/provenance/{query-id}" target="_blank"&gt;https://host:port/nifi-api/provenance/{query-id}&lt;/A&gt;&lt;/CODE&gt; which will respond with the results of the query. From this response, you can iterate/extract specific provenance event IDs and request more information using the &lt;CODE&gt;GET /provenance-events/{id}&lt;/CODE&gt; method. You can also add additional filters and search terms in the initial query to refine it (see &lt;CODE&gt;GET /provenance/search-options&lt;/CODE&gt; for available options).
&lt;/P&gt;
&lt;P&gt;
	Example response to search options (
	&lt;CODE&gt;GET &lt;A href="https://nifi.nifi.apache.org:9443/nifi-api/provenance/search-options" target="_blank"&gt;https://nifi.nifi.apache.org:9443/nifi-api/provenance/search-options&lt;/A&gt;&lt;/CODE&gt;):
&lt;/P&gt;
&lt;PRE&gt;
{"provenanceOptions":{"searchableFields":[{"id":"EventType","field":"eventType","label":"Event Type","type":"STRING"},{"id":"FlowFileUUID","field":"uuid","label":"FlowFile UUID","type":"STRING"},{"id":"Filename","field":"filename","label":"Filename","type":"STRING"},{"id":"ProcessorID","field":"processorId","label":"Component ID","type":"STRING"},{"id":"Relationship","field":"relationship","label":"Relationship","type":"STRING"}]}}
&lt;/PRE&gt;
&lt;P&gt;
	Example response to initial query submission (
	&lt;CODE&gt;POST &lt;A href="https://nifi.nifi.apache.org:9443/nifi-api/provenance" target="_blank"&gt;https://nifi.nifi.apache.org:9443/nifi-api/provenance&lt;/A&gt;&lt;/CODE&gt;):
&lt;/P&gt;
&lt;PRE&gt;
{"provenance":{"id":"0e74ca7f-0158-1000-e780-8ec16cb486ba","uri":"https://nifi.nifi.apache.org:9443/nifi-api/provenance/0e74ca7f-0158-1000-e780-8ec16cb486ba","submissionTime":"10/28/2016 20:21:24.866 PDT","expiration":"10/28/2016 20:51:24.868 PDT","percentCompleted":0,"finished":false,"request":{"searchTerms":{},"maxResults":1000},"results":{"provenanceEvents":[],"total":"0","totalCount":0,"generated":"20:21:24 PDT","oldestEvent":"10/28/2016 20:14:44 PDT","timeOffset":-25200000}}}
&lt;/PRE&gt;
&lt;P&gt;
	Example response to query update request (
	&lt;CODE&gt;GET &lt;A href="https://nifi.nifi.apache.org:9443/nifi-api/provenance/0e74ca7f-0158-1000-e780-8ec16cb486ba" target="_blank"&gt;https://nifi.nifi.apache.org:9443/nifi-api/provenance/0e74ca7f-0158-1000-e780-8ec16cb486ba&lt;/A&gt;&lt;/CODE&gt;):
&lt;/P&gt;
&lt;PRE&gt;
{"provenance":{"id":"0e74ca7f-0158-1000-e780-8ec16cb486ba","uri":"https://nifi.nifi.apache.org:9443/nifi-api/provenance/0e74ca7f-0158-1000-e780-8ec16cb486ba","submissionTime":"10/28/2016 20:21:24.866 PDT","expiration":"10/28/2016 20:51:24.876 PDT","percentCompleted":100,"finished":true,"request":{"searchTerms":{},"maxResults":1000},"results":{"provenanceEvents":[{"id":"13","eventId":13,"eventTime":"10/28/2016 20:15:43.606 PDT","lineageDuration":11,"eventType":"DROP","flowFileUuid":"66d1354f-1c0d-4658-9263-17d77ef741df","fileSize":"0 bytes","fileSizeBytes":0,"groupId":"0947f405-0158-1000-d643-3299cb111b40","componentId":"0e6f37b9-0158-1000-254c-d79aeb605761","componentType":"LogAttribute","componentName":"LogAttribute","attributes":[{"name":"filename","value":"1234593201638265","previousValue":"1234593201638265"},{"name":"path","value":"./","previousValue":"./"},{"name":"uuid","value":"66d1354f-1c0d-4658-9263-17d77ef741df","previousValue":"66d1354f-1c0d-4658-9263-17d77ef741df"}],"parentUuids":[],"childUuids":[],"details":"Auto-Terminated by success Relationship","contentEqual":false,"inputContentAvailable":false,"outputContentAvailable":false,"outputContentClaimFileSize":"0 bytes","outputContentClaimFileSizeBytes":0,"replayAvailable":false,"replayExplanation":"Cannot replay data from Provenance Event because the event does not contain the required Content Claim","sourceConnectionIdentifier":"0e6f4ed9-0158-1000-0ab4-97a391fb36b8"}, 

... 

{"id":"0","eventId":0,"eventTime":"10/28/2016 20:14:44.820 PDT","lineageDuration":10,"eventType":"CREATE","flowFileUuid":"3e5d9a82-f185-48d5-b0e4-f3b818f81a13","fileSize":"0 bytes","fileSizeBytes":0,"groupId":"0947f405-0158-1000-d643-3299cb111b40","componentId":"0e6e6df1-0158-1000-e997-ec080b4cdd98","componentType":"GenerateFlowFile","componentName":"GenerateFlowFile","attributes":[{"name":"filename","value":"1234534415887832"},{"name":"path","value":"./"},{"name":"uuid","value":"3e5d9a82-f185-48d5-b0e4-f3b818f81a13"}],"parentUuids":[],"childUuids":[],"contentEqual":false,"inputContentAvailable":false,"outputContentAvailable":false,"outputContentClaimFileSize":"0 bytes","outputContentClaimFileSizeBytes":0,"replayAvailable":false,"replayExplanation":"Cannot replay data from Provenance Event because the event does not contain the required Content Claim"}],"total":"14","totalCount":14,"generated":"20:21:25 PDT","oldestEvent":"10/28/2016 20:14:44 PDT","timeOffset":-25200000}}}
&lt;/PRE&gt;
&lt;P&gt;
Response to query delete request when processing is complete (
	&lt;CODE&gt;DELETE &lt;A href="https://nifi.nifi.apache.org:9443/nifi-api/provenance/0e74ca7f-0158-1000-e780-8ec16cb486ba" target="_blank"&gt;https://nifi.nifi.apache.org:9443/nifi-api/provenance/0e74ca7f-0158-1000-e780-8ec16cb486ba&lt;/A&gt;&lt;/CODE&gt;):
&lt;/P&gt;
&lt;PRE&gt;
{}
&lt;/PRE&gt;</description>
      <pubDate>Sat, 29 Oct 2016 10:38:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-how-to-get-provenance-event-id-in-nifi/m-p/154683#M44754</guid>
      <dc:creator>alopresto</dc:creator>
      <dc:date>2016-10-29T10:38:25Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi- how to get provenance event id in nifi?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-how-to-get-provenance-event-id-in-nifi/m-p/154684#M44755</link>
      <description>&lt;P&gt;Thanks a lot ,I've managed to solve this problem with your help&lt;/P&gt;</description>
      <pubDate>Mon, 31 Oct 2016 13:49:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-how-to-get-provenance-event-id-in-nifi/m-p/154684#M44755</guid>
      <dc:creator>565109424</dc:creator>
      <dc:date>2016-10-31T13:49:55Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi- how to get provenance event id in nifi?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-how-to-get-provenance-event-id-in-nifi/m-p/154685#M44756</link>
      <description>&lt;P&gt;Hi @&lt;A href="https://community.hortonworks.com/users/13703/565109424.html"&gt;m mary&lt;/A&gt; / @&lt;A href="https://community.hortonworks.com/users/595/alopresto.html"&gt;Andy LoPresto&lt;/A&gt;:
As mentioned above i got provenance id(&lt;STRONG&gt;ex id : 0e74ca7f-0158-1000-e780-8ec16cb486ba&lt;/STRONG&gt;).
Now i want to run  "/provenance-events/{id}" rest API. So i have replced above id with this rest API(&lt;STRONG&gt;/provenance-events/0e74ca7f-0158-1000-e780-8ec16cb486ba&lt;/STRONG&gt;).
But it is throwing  "HTTP/1.1 404 Not Found" error. Please help me which id I need to replace here to get the provenance-events details.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Nov 2016 20:13:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-how-to-get-provenance-event-id-in-nifi/m-p/154685#M44756</guid>
      <dc:creator>saminathancs17</dc:creator>
      <dc:date>2016-11-02T20:13:23Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi- how to get provenance event id in nifi?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-how-to-get-provenance-event-id-in-nifi/m-p/154686#M44757</link>
      <description>&lt;P&gt;hi. provenance id is changing.every id can be used once,you can't use the provenance id to get "/provenance-events/{id}" again,you can get id and get the url directly.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Nov 2016 09:36:05 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-how-to-get-provenance-event-id-in-nifi/m-p/154686#M44757</guid>
      <dc:creator>565109424</dc:creator>
      <dc:date>2016-11-03T09:36:05Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi- how to get provenance event id in nifi?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-how-to-get-provenance-event-id-in-nifi/m-p/154687#M44758</link>
      <description>&lt;P&gt;Hi, As per your suggestion I have replaced above rest API (&lt;STRONG&gt;/provenance-events/{id}&lt;/STRONG&gt;) ID with UUID/Component Id/Identifier. Still it is throwing "404 Not Found" error.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Nov 2016 13:55:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-how-to-get-provenance-event-id-in-nifi/m-p/154687#M44758</guid>
      <dc:creator>saminathancs17</dc:creator>
      <dc:date>2016-11-03T13:55:30Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi- how to get provenance event id in nifi?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-how-to-get-provenance-event-id-in-nifi/m-p/154688#M44759</link>
      <description>&lt;P&gt;
	Can you please post the complete output of curl or whatever REST client you are using? The complete URI to use is &lt;CODE&gt;http(s)://host:port/nifi-api/provenance-events/{id}&lt;/CODE&gt;. &lt;/P&gt;</description>
      <pubDate>Sat, 05 Nov 2016 00:33:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-how-to-get-provenance-event-id-in-nifi/m-p/154688#M44759</guid>
      <dc:creator>alopresto</dc:creator>
      <dc:date>2016-11-05T00:33:56Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi- how to get provenance event id in nifi?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-how-to-get-provenance-event-id-in-nifi/m-p/154689#M44760</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/595/alopresto.html" nodeid="595"&gt;@Andy LoPresto&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I got below ouput after executing  &lt;CODE&gt;GET&lt;/CODE&gt; request to &lt;A href="http://&amp;lt;hostname&amp;gt;:9090/nifi-api/provenance/query-id" target="_blank"&gt;http://&amp;lt;hostname&amp;gt;:9090/nifi-api/provenance/query-id&lt;/A&gt; :&lt;/P&gt;&lt;PRE&gt;{"provenanceEvents":[{"id":"a9d352d4-20e9-4fbb-851c-3191204d58ba4","eventId":4,"eventTime":"04/18/2017 09:30:14.775 UTC","lineageDuration":1,"eventType":"CREATE","flowFileUuid":"c87d810d-17b7-4c5f-b313-dd4653e81a8d","fileSize":"0 bytes","fileSizeBytes":0,"clusterNodeId":"a9d352d4-20e9-4fbb-851c-3191204d58ba","clusterNodeAddress":"amnifi1.openstacklocal:9090","groupId":"b90e8d65-015a-1000-22ce-e993c787469e","componentId":"61665eb8-015b-1000-0000-0000653a830f","componentType":"ListFTP","componentName":"AAAAAAAAAAAA","attributes":[{"name":"file.group","value":"0"},{"name":"file.lastModifiedTime","value":"2017-04-18T09:30:00+0000"},{"name":"file.owner","value":"0"},{"name":"file.permissions","value":"rw-r--r--"},{"name":"filename","value":"jj1.txt"},{"name":"ftp.listing.user","value":"akshay"},{"name":"ftp.remote.host","value":"amnifi3.openstacklocal"},{"name":"ftp.remote.port","value":"21"},{"name":"path","value":"ALL_DAY_WORK"},{"name":"uuid","value":"c87d810d-17b7-4c5f-b313-dd4653e81a8d"}],"parentUuids":[],"childUuids":[],"contentEqual":false,"inputContentAvailable":false,"outputContentAvailable":false,"outputContentClaimFileSize":"0 bytes","outputContentClaimFileSizeBytes":0,"replayAvailable":false,"replayExplanation":"Cannot replay data from Provenance Event because the event does not contain the required Content Claim”},&lt;/PRE&gt;&lt;P&gt;Now when I am trying to submit GET request to get more info about provenance event I am getting below error message :&lt;/P&gt;&lt;P&gt;$ curl -i -X GET &lt;A href="http://&amp;lt;hostname&amp;gt;:9090/nifi-api/provenance-events/{4}" target="_blank"&gt;http://&amp;lt;hostname&amp;gt;:9090/nifi-api/provenance-events/{4}&lt;/A&gt;&lt;/P&gt;&lt;PRE&gt;HTTP/1.1 400 Bad Request
Date: Wed, 19 Apr 2017 07:21:13 GMT
Content-Type: text/plain
Transfer-Encoding: chunked
Server: Jetty(9.3.9.v20160517)
The cluster node identifier must be specified.
&lt;/PRE&gt;&lt;P&gt;Nifi is clustered. Not sure where I should mentioned cluster node id. Please help.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2017 14:43:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-how-to-get-provenance-event-id-in-nifi/m-p/154689#M44760</guid>
      <dc:creator>amankumbare</dc:creator>
      <dc:date>2017-04-19T14:43:47Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi- how to get provenance event id in nifi?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-how-to-get-provenance-event-id-in-nifi/m-p/154690#M44761</link>
      <description>&lt;P&gt;
 As noted in the &lt;A target="_blank" href="https://nifi.apache.org/docs/nifi-docs/rest-api/index.html" rel="nofollow noopener noreferrer"&gt;REST API&lt;/A&gt;, &lt;CODE&gt;clusterNodeId&lt;/CODE&gt; is a required field in the &lt;CODE&gt;GET /provenance-events/{id}&lt;/CODE&gt; request when running in clustered mode. Use the Developer Tools of your browser to watch the requests that the UI fires when you get the details of a provenance event and you should see where to include the &lt;CODE&gt;clusterNodeId&lt;/CODE&gt; in the request (my instance is not running in a cluster so it is not present in my request). &lt;/P&gt;&lt;P&gt;
 &lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="14761-screen-shot-2017-04-19-at-102930-am.png" style="width: 1280px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/20982i6CBEAE56C1130DD5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="14761-screen-shot-2017-04-19-at-102930-am.png" alt="14761-screen-shot-2017-04-19-at-102930-am.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 12:31:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-how-to-get-provenance-event-id-in-nifi/m-p/154690#M44761</guid>
      <dc:creator>alopresto</dc:creator>
      <dc:date>2019-08-18T12:31:16Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi- how to get provenance event id in nifi?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-how-to-get-provenance-event-id-in-nifi/m-p/154691#M44762</link>
      <description>&lt;P&gt;Please refer below link in order to get more information about a specific provenance event for nifi which is running in clustered mode : &lt;A target="_blank" href="https://community.hortonworks.com/articles/97899/how-to-use-provenance-eventsid-nifi-rest-api.html"&gt;- How to get information of a specific provenance event when nifi is running in standalone/clustered mode ?&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 23 Apr 2017 22:58:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-how-to-get-provenance-event-id-in-nifi/m-p/154691#M44762</guid>
      <dc:creator>amankumbare</dc:creator>
      <dc:date>2017-04-23T22:58:36Z</dc:date>
    </item>
  </channel>
</rss>

