<?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: Unable to update/execute  processor though NIFI rest API in NIFI 1.0.0 in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-update-execute-processor-though-NIFI-rest-API-in/m-p/163642#M45236</link>
    <description>&lt;P&gt;the above command works as a curl perfectly. can we achieve the same from the nifi processors? I am trying with InvokeHTTP and POSTHTTP but where do we need to specify the data-binary values in the processors?&lt;/P&gt;</description>
    <pubDate>Wed, 07 Jun 2017 15:35:59 GMT</pubDate>
    <dc:creator>na2_koihey11</dc:creator>
    <dc:date>2017-06-07T15:35:59Z</dc:date>
    <item>
      <title>Unable to update/execute  processor though NIFI rest API in NIFI 1.0.0</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-update-execute-processor-though-NIFI-rest-API-in/m-p/163636#M45230</link>
      <description>&lt;P&gt;Background:We are using Apache NIFI data flow to move data local from to Hadoop based file systems.We are executing the NIFI processors by calling the NIFI rest API using groovy script wherein we  use json builders in groovy to generate the Json and then passing the json to  put methods to execute the processors. NIFI Version:0.6.0&lt;/P&gt;&lt;P&gt;While planning to migrate to NIFI 1.0.0  and using the same groovy script we are facing a few errors in the latest version of NIFI(1.0.0):&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Having controller/revision in nifi.get method does not
return the response json, instead its throwing 404, verified in browser too.
This works fine in 0.6.1 Nifi version. &lt;STRONG&gt;Reference &lt;/STRONG&gt;: &lt;STRONG&gt;resp = nifi.get(path: 'controller/revision')&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;This  below does not work too, since having controller
in path as a pretext to process-groups is no longer valid. It also returns a
404/bad request error.This works fine in 0.6.1 Nifi version                                                                                                     &lt;STRONG&gt;Reference&lt;/STRONG&gt; : &lt;STRONG&gt;resp = nifi.put(
          path:
"controller/process-groups/$processGroup/processors/$processorId",
          body: builder.toPrettyString(),
          requestContentType: JSON&lt;/STRONG&gt;
 &lt;STRONG&gt;      )&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;PS: While trying to verify the below in browser, GET only
responds when we have structures like /process-groups/{id} or
/process-groups/{id}/processors , i.e. without controller string.This works
fine in 0.6.1 Nifi version                                             &lt;STRONG&gt;Reference: host://port/nifi-api/process-groups/root      &lt;/STRONG&gt;                                                                                                                       &lt;/LI&gt;&lt;LI&gt;Below syntax does not work in script either. This works fine
in 0.6.1 Nifi version
&lt;STRONG&gt;

resp = nifi.put(


  path: "process-groups/$processGroup/processors/$processorId",


  body: builder.toPrettyString(),


  requestContentType: JSON


)&lt;/STRONG&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Since the syntax provided above works perfectly fine in 0.6.0 I would like to know if any changes are made in NIFI 1.0.0 in the rest API or in the way the various HTTP requests are passed to methods like '&lt;STRONG&gt;get&lt;/STRONG&gt;' and '&lt;STRONG&gt;put&lt;/STRONG&gt;'?&lt;/P&gt;&lt;P&gt;I could not find any changes in the &lt;STRONG&gt;release notes&lt;/STRONG&gt; or the &lt;STRONG&gt;NIFI API documentation&lt;/STRONG&gt; provided in the link below:         &lt;/P&gt;&lt;P&gt;&lt;A href="https://nifi.apache.org/docs/nifi-docs/rest-api/" target="_blank"&gt;https://nifi.apache.org/docs/nifi-docs/rest-api/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Please let me know if you need any other information.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Indranil Roy &lt;/P&gt;</description>
      <pubDate>Thu, 03 Nov 2016 20:54:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-update-execute-processor-though-NIFI-rest-API-in/m-p/163636#M45230</guid>
      <dc:creator>indranil89</dc:creator>
      <dc:date>2016-11-03T20:54:54Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to update/execute  processor though NIFI rest API in NIFI 1.0.0</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-update-execute-processor-though-NIFI-rest-API-in/m-p/163637#M45231</link>
      <description>&lt;P&gt;Indranil Roy,&lt;/P&gt;&lt;P&gt;For Apache NiFi 1.0.0 the REST API was completely refactored to promote multi-tenancy. Specifically, the endpoints have been reorganized to align with the resources being authorized and component specific revisions have been introduced. I would highly recommend using the Developer Tools in your browser to see the APIs in action. Here is an example curl commend for starting a processor.&lt;/P&gt;&lt;PRE&gt;curl 'http://localhost:8080/nifi-api/processors/2a817541-0158-1000-771e-93ca6d670429' -X PUT -H 'Content-Type: application/json' -H 'Accept: application/json, text/javascript, */*; q=0.01' --data-binary '{"revision":{"clientId":"2a81087c-0158-1000-1362-5452a699615c","version":3},"component":{"id":"2a817541-0158-1000-771e-93ca6d670429","state":"RUNNING"}}'&lt;/PRE&gt;&lt;P&gt;In order to get the revision details for this component it would be available in the flow returned for a given process group. Here's an example of that curl commend.&lt;/P&gt;&lt;PRE&gt;curl 'http://localhost:8080/nifi-api/flow/process-groups/&amp;lt;process-group-id&amp;gt;'&lt;/PRE&gt;</description>
      <pubDate>Thu, 03 Nov 2016 21:10:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-update-execute-processor-though-NIFI-rest-API-in/m-p/163637#M45231</guid>
      <dc:creator>mgilman</dc:creator>
      <dc:date>2016-11-03T21:10:52Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to update/execute  processor though NIFI rest API in NIFI 1.0.0</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-update-execute-processor-though-NIFI-rest-API-in/m-p/163638#M45232</link>
      <description>&lt;P&gt;thank you so much.. i had issues with this curl dude.. had been searching for the correct command for over 3 days.. its working now.. &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Dec 2016 19:56:34 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-update-execute-processor-though-NIFI-rest-API-in/m-p/163638#M45232</guid>
      <dc:creator>anubhav_r_raika</dc:creator>
      <dc:date>2016-12-21T19:56:34Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to update/execute  processor though NIFI rest API in NIFI 1.0.0</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-update-execute-processor-though-NIFI-rest-API-in/m-p/163639#M45233</link>
      <description>&lt;P&gt;where can I get this entire documentation? What if I want to run a Process-Group ?&lt;/P&gt;</description>
      <pubDate>Wed, 21 Dec 2016 21:03:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-update-execute-processor-though-NIFI-rest-API-in/m-p/163639#M45233</guid>
      <dc:creator>anubhav_r_raika</dc:creator>
      <dc:date>2016-12-21T21:03:25Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to update/execute  processor though NIFI rest API in NIFI 1.0.0</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-update-execute-processor-though-NIFI-rest-API-in/m-p/163640#M45234</link>
      <description>&lt;P&gt;The documentation is the link that you already have. However, I would suggest checking out the Developer Tools in your browser. The UI uses the REST API for all interactions with the framework. The Developer Tools even allows for you to copy the command as a cUrl command.&lt;/P&gt;&lt;P&gt;Here's the command for starting a Process Group.&lt;/P&gt;&lt;P&gt;curl 'http://localhost:8080/nifi-api/flow/process-groups/232d4ab5-0159-1000-1962-8a2afbbe9dc9' -X PUT -H 'Accept-Encoding: gzip, deflate, sdch, br' -H 'Content-Type: application/json' -H 'Accept: application/json, text/javascript, */*; q=0.01' -H 'Referer: http://localhost:8080/nifi/' -H 'X-Requested-With: XMLHttpRequest' -H 'Connection: keep-alive' --data-binary '{"id":"232d4ab5-0159-1000-1962-8a2afbbe9dc9","state":"RUNNING"}' --compressed&lt;/P&gt;</description>
      <pubDate>Thu, 22 Dec 2016 05:00:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-update-execute-processor-though-NIFI-rest-API-in/m-p/163640#M45234</guid>
      <dc:creator>mgilman</dc:creator>
      <dc:date>2016-12-22T05:00:31Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to update/execute  processor though NIFI rest API in NIFI 1.0.0</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-update-execute-processor-though-NIFI-rest-API-in/m-p/163641#M45235</link>
      <description>&lt;P&gt;thank you so so much.. i can enjoy holidays now knowing this has been taken care of.. Happy Holidays to you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; will surely research on Dev Tools&lt;/P&gt;</description>
      <pubDate>Thu, 22 Dec 2016 21:36:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-update-execute-processor-though-NIFI-rest-API-in/m-p/163641#M45235</guid>
      <dc:creator>anubhav_r_raika</dc:creator>
      <dc:date>2016-12-22T21:36:09Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to update/execute  processor though NIFI rest API in NIFI 1.0.0</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-update-execute-processor-though-NIFI-rest-API-in/m-p/163642#M45236</link>
      <description>&lt;P&gt;the above command works as a curl perfectly. can we achieve the same from the nifi processors? I am trying with InvokeHTTP and POSTHTTP but where do we need to specify the data-binary values in the processors?&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jun 2017 15:35:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-update-execute-processor-though-NIFI-rest-API-in/m-p/163642#M45236</guid>
      <dc:creator>na2_koihey11</dc:creator>
      <dc:date>2017-06-07T15:35:59Z</dc:date>
    </item>
  </channel>
</rss>

