<?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 clear state in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Nifi-clear-state/m-p/242349#M204152</link>
    <description>&lt;P&gt;Thank you Shu !&lt;/P&gt;&lt;P&gt;It seems to solve my problem. I can't test it now because of an error when retrieving the state("Failed to obtain value from ZooKeeper for component with ID 8a2d3c3d-5eb5-1331-8be1-6f5fda823456 with exception code CONNECTIONLOSS").&lt;/P&gt;&lt;P&gt;But it's on my side now.&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;</description>
    <pubDate>Thu, 13 Jun 2019 20:01:12 GMT</pubDate>
    <dc:creator>chauvin_christo</dc:creator>
    <dc:date>2019-06-13T20:01:12Z</dc:date>
    <item>
      <title>Nifi clear state</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-clear-state/m-p/242347#M204150</link>
      <description>&lt;P&gt;Is there a way to clear the state of a processor using another processor or groovy scripting (in an ExecuteStateProcessor) ?&lt;/P&gt;&lt;P&gt;The goal is to reset the state of a ScrollElasticSearchHttp processor to be able to run it more than once.&lt;/P&gt;&lt;P&gt;Important. I don't want do it manually using the UI ("state management" then "clear state", as it is explained in &lt;A rel="noopener noreferrer noopener noreferrer" href="https://community.hortonworks.com/questions/64405/nifi-clear-state.html" target="_blank"&gt;https://community.hortonworks.com/questions/64405/nifi-clear-state.html&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;I want this operation be done after a scroll execution.&lt;/P&gt;&lt;P&gt;Refer the nifi doc : &lt;A rel="noopener noreferrer noopener noreferrer" href="https://help.syncfusion.com/data-integration/processors/scrollelasticsearchhttp" target="_blank"&gt;https://help.syncfusion.com/data-integration/processors/scrollelasticsearchhttp&lt;/A&gt;&lt;/P&gt;...&lt;P&gt;&lt;EM&gt;Scrolls through an Elasticsearch query using the specified connection properties. This processor is intended to be run on the primary node, and is designed for scrolling through huge result sets, as in the case of a reindex. &lt;U&gt;&lt;STRONG&gt;The state must be cleared before another query can be run&lt;/STRONG&gt;. &lt;/U&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;U&gt;&lt;/U&gt;&lt;/EM&gt;&lt;U&gt;&lt;/U&gt;...&lt;U&gt;&lt;/U&gt;&lt;U&gt;&lt;/U&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;But how do that ?&lt;/P&gt;&lt;P&gt;Thanks by advance.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2019 18:31:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-clear-state/m-p/242347#M204150</guid>
      <dc:creator>chauvin_christo</dc:creator>
      <dc:date>2019-06-12T18:31:35Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi clear state</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-clear-state/m-p/242348#M204151</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/113884/chauvinchristophe.html" nodeid="113884"&gt;@chauvin christophe&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You can use &lt;A rel="noopener noreferrer noopener noreferrer" href="https://nifi.apache.org/docs/nifi-docs/rest-api/index.html" target="_blank"&gt;NiFi RestApi /processors/{id}/state/clear-requests &lt;/A&gt; call, to clear the state stored in the processor.&lt;/P&gt;&lt;P&gt;We can make &lt;A rel="noopener noreferrer noopener noreferrer" href="http://apache-nifi-developer-list.39713.n7.nabble.com/How-restart-and-clear-state-for-listHDFS-processor-td14616.html" target="_blank"&gt;restapi &lt;/A&gt;call by using &lt;A rel="noopener noreferrer noopener noreferrer" href="https://community.hortonworks.com/questions/167593/can-we-empty-all-the-queues-inside-a-process-group.html" target="_blank"&gt;invokehttp &lt;/A&gt;processor (or) groovy script and triggered by using NiFi.&lt;A rel="noopener noreferrer noopener noreferrer" href="https://nifi.apache.org/docs/nifi-docs/rest-api/index.html" target="_blank"&gt; &lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2019 03:06:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-clear-state/m-p/242348#M204151</guid>
      <dc:creator>Shu_ashu</dc:creator>
      <dc:date>2019-06-13T03:06:42Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi clear state</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-clear-state/m-p/242349#M204152</link>
      <description>&lt;P&gt;Thank you Shu !&lt;/P&gt;&lt;P&gt;It seems to solve my problem. I can't test it now because of an error when retrieving the state("Failed to obtain value from ZooKeeper for component with ID 8a2d3c3d-5eb5-1331-8be1-6f5fda823456 with exception code CONNECTIONLOSS").&lt;/P&gt;&lt;P&gt;But it's on my side now.&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2019 20:01:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-clear-state/m-p/242349#M204152</guid>
      <dc:creator>chauvin_christo</dc:creator>
      <dc:date>2019-06-13T20:01:12Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi clear state</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-clear-state/m-p/296891#M218479</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/55311"&gt;@Shu_ashu&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;this approach works has a problem that clear-state is working only on stopped processor.&amp;nbsp;&lt;BR /&gt;I am using&amp;nbsp;&amp;nbsp;ScrollElasticsearch processor and it needs to be cleared before it can be executed again.&amp;nbsp;&lt;BR /&gt;I tried&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;curl -i -X POST http://localhost:8080/nifi-api/processors/0172101b-be82-11aa-1249-d1383cb1ceba/state/clear-requests&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;but it end-up with conflict status&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;I must stop processor in order to clear-state&lt;BR /&gt;Do I really have to stop processor? manually or via API - it doesn't seems to me as a good design.&lt;BR /&gt;&lt;BR /&gt;Could you Help or give any advice please?&lt;BR /&gt;Thank u.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Petr&lt;/P&gt;</description>
      <pubDate>Fri, 29 May 2020 15:11:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-clear-state/m-p/296891#M218479</guid>
      <dc:creator>Petr_Simik</dc:creator>
      <dc:date>2020-05-29T15:11:46Z</dc:date>
    </item>
  </channel>
</rss>

