<?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: Best way to alter a nifi  processor  configuration  - use curl &amp;amp; API or python?  Or something else? in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Best-way-to-alter-a-nifi-processor-configuration-use-curl/m-p/412977#M253803</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/136792"&gt;@zzzz77&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Did the answers help you here?&amp;nbsp;&lt;BR /&gt;If so, please consider marking the comment that help you as the solution.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 02 Dec 2025 15:27:04 GMT</pubDate>
    <dc:creator>vafs</dc:creator>
    <dc:date>2025-12-02T15:27:04Z</dc:date>
    <item>
      <title>Best way to alter a nifi  processor  configuration  - use curl &amp; API or python?  Or something else?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Best-way-to-alter-a-nifi-processor-configuration-use-curl/m-p/412923#M253776</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;What is the preferred method to alter a nifi processor configuration please?&lt;/P&gt;&lt;P&gt;We want to be able to get a user to choose from one of 3 options from a drop down menu in a GUI screen. The chosen option then is passed to either a curl command to make changes to the processor via the Nifi API, or can we create a python command to then alter a nifi processor configuration possibly by curl, but maybe there is another way?&lt;/P&gt;&lt;P&gt;Curl looks a safer option, but python might be better? Not sure....?&lt;/P&gt;&lt;P&gt;Thanks in advance.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Nov 2025 00:50:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Best-way-to-alter-a-nifi-processor-configuration-use-curl/m-p/412923#M253776</guid>
      <dc:creator>zzzz77</dc:creator>
      <dc:date>2025-11-25T00:50:51Z</dc:date>
    </item>
    <item>
      <title>Re: Best way to alter a nifi  processor  configuration  - use curl &amp; API or python?  Or something else?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Best-way-to-alter-a-nifi-processor-configuration-use-curl/m-p/412929#M253782</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/136792"&gt;@zzzz77&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;The best way here should be the NiFi API. It's safer and more standardized. Also, since it's NiFi provided, it's easier to integrate.&amp;nbsp;&lt;BR /&gt;&lt;A href="https://nifi.apache.org/docs/nifi-docs/rest-api/index.html#processors" target="_blank"&gt;https://nifi.apache.org/docs/nifi-docs/rest-api/index.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You can use the Processors options.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Nov 2025 16:56:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Best-way-to-alter-a-nifi-processor-configuration-use-curl/m-p/412929#M253782</guid>
      <dc:creator>vafs</dc:creator>
      <dc:date>2025-11-25T16:56:38Z</dc:date>
    </item>
    <item>
      <title>Re: Best way to alter a nifi  processor  configuration  - use curl &amp; API or python?  Or something else?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Best-way-to-alter-a-nifi-processor-configuration-use-curl/m-p/412938#M253787</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thanks, will do.&lt;/P&gt;&lt;P&gt;I did try reading Provenance data via the nifi 2.5.0 API and it seems to fail&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;I run this in my local windows CMD window and get&amp;nbsp; &amp;nbsp;"unknown error" :&lt;/P&gt;&lt;P&gt;curl --insecure -X POST -H "Authorization: Bearer &amp;lt;my token&amp;gt; "&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://localhost:8443/nifi-api/provenance/queries" target="_blank" rel="noopener nofollow noreferrer"&gt;https://localhost:8443/nifi-api/provenance&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Then I run this and get :&amp;nbsp;&lt;/P&gt;&lt;P&gt;curl --insecure -X POST -H "Authorization: Bearer &amp;lt;token&amp;gt;"&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://localhost:8443/nifi-api/provenance/queries" target="_blank" rel="noopener nofollow noreferrer"&gt;https://localhost:8443/nifi-api/provenance&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&amp;gt; test.txt&lt;/P&gt;&lt;P&gt;In text.txt file I get :&lt;/P&gt;&lt;P&gt;"An unexpected error has occurred. Please check the logs for additional details."&lt;/P&gt;&lt;P&gt;I just wanted to check I have the syntax right.&amp;nbsp; I ran other API queries for flows etc and they work fine.&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Nov 2025 04:32:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Best-way-to-alter-a-nifi-processor-configuration-use-curl/m-p/412938#M253787</guid>
      <dc:creator>zzzz77</dc:creator>
      <dc:date>2025-11-27T04:32:22Z</dc:date>
    </item>
    <item>
      <title>Re: Best way to alter a nifi  processor  configuration  - use curl &amp; API or python?  Or something else?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Best-way-to-alter-a-nifi-processor-configuration-use-curl/m-p/412942#M253790</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/136792"&gt;@zzzz77&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;That happens because NiFi 2.x API does not work with an empty POST on for provenance, it always needs to consume a valid JSON:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vafs_0-1764264769892.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/46445i541160F894BE7049/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vafs_0-1764264769892.png" alt="vafs_0-1764264769892.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;A href="https://nifi.apache.org/docs/nifi-docs/rest-api/#provenance" target="_blank"&gt;https://nifi.apache.org/docs/nifi-docs/rest-api/#provenance&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You need to add the query, something like this:&amp;nbsp;&lt;BR /&gt;curl --insecure -X POST -H "Authorization: Bearer &amp;lt;token&amp;gt;" -H "Content-Type: application/json" -d "{\"provenance\":{\"request\":{\"maxResults\":1000}}}" &lt;A href="https://localhost:8443/nifi-api/provenance" target="_blank"&gt;https://localhost:8443/nifi-api/provenance&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Check in your environment.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Nov 2025 17:34:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Best-way-to-alter-a-nifi-processor-configuration-use-curl/m-p/412942#M253790</guid>
      <dc:creator>vafs</dc:creator>
      <dc:date>2025-11-27T17:34:49Z</dc:date>
    </item>
    <item>
      <title>Re: Best way to alter a nifi  processor  configuration  - use curl &amp; API or python?  Or something else?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Best-way-to-alter-a-nifi-processor-configuration-use-curl/m-p/412977#M253803</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/136792"&gt;@zzzz77&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Did the answers help you here?&amp;nbsp;&lt;BR /&gt;If so, please consider marking the comment that help you as the solution.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Dec 2025 15:27:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Best-way-to-alter-a-nifi-processor-configuration-use-curl/m-p/412977#M253803</guid>
      <dc:creator>vafs</dc:creator>
      <dc:date>2025-12-02T15:27:04Z</dc:date>
    </item>
  </channel>
</rss>

