<?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 - Scheduling - parts of the processors within a process group should run only once in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/NiFi-Scheduling-parts-of-the-processors-within-a-process/m-p/203546#M165545</link>
    <description>&lt;A rel="user" href="https://community.cloudera.com/users/98270/ij.html" nodeid="98270"&gt;@Ingrid Justen&lt;/A&gt;&lt;P&gt;1.after 1 day when the ExecuteSQL is still active and will be triggered again. I will have to test it.&lt;/P&gt;&lt;P&gt;Yes processor will trigger after 1 day then it will execute the sql statement again.&lt;/P&gt;&lt;P&gt;2.The option "&lt;STRONG&gt;Execution&lt;/STRONG&gt;" (value "Primary node") does not appear in my NiFi. Is this a version thing (working with 1.6.0)?&lt;/P&gt;&lt;P&gt;-&amp;gt; Stop ExecuteSQL processor&lt;/P&gt;&lt;P&gt;-&amp;gt; Right click on the processor&lt;BR /&gt;-&amp;gt; Goto Configure&lt;BR /&gt;-&amp;gt; Click on Scheduling tab&lt;BR /&gt;-&amp;gt; Select &lt;STRONG&gt;PrimaryNode&lt;/STRONG&gt; in &lt;STRONG&gt;Execution dropdown&lt;/STRONG&gt;.(this property only applicable if you are having more than one node for NiFi instance).&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;1.PrimaryNode //processor is scheduled to run in only primary node&lt;BR /&gt;2.AllNodes //if you are having 3 node nifi cluster then the processor will scheduled to run all the nodes i.e. instead of one output flowfile we are going to have 3 flowfiles with same size(this is just all nodes are doing same work results data duplication)&lt;/PRE&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/questions/144016/nifi-cluster-list-files-from-one-of-the-nodes-in-t.html" target="_blank"&gt;this&lt;/A&gt; and &lt;A href="https://community.hortonworks.com/questions/65506/is-nifi-primary-node-and-dataflow-manager-the-same.html" target="_blank"&gt;this&lt;/A&gt; links explains more regards to the modes of Executions in NiFi&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;For this case &lt;B&gt;keep the blue outlined processors&lt;/B&gt; into &lt;B&gt;one processor group &lt;/B&gt;and use &lt;B&gt;NiFi RestAPI&lt;/B&gt; to start the processor group.&lt;/P&gt;&lt;P&gt;Once the processing is completed then By using RestAPI stop the processor group.&lt;/P&gt;&lt;P&gt;Following this way we are going to trigger ExecuteSQL only once, then we are stopping the group as soon as all the processing is done.&lt;/P&gt;&lt;P&gt;Refer to &lt;A href="https://community.hortonworks.com/questions/185823/stop-controller-service-in-nifi-using-rest-api.html" target="_blank"&gt;this&lt;/A&gt;, &lt;A href="https://community.hortonworks.com/articles/110096/start-process-group-using-nifi-rest-api.html" target="_blank"&gt;this&lt;/A&gt;,&lt;A href="https://stackoverflow.com/questions/51706394/how-to-start-all-processors/51707791" target="_blank"&gt;this&lt;/A&gt; links regards to stop/start processor group using &lt;A href="https://nifi.apache.org/docs/nifi-docs/rest-api/index.html" target="_blank"&gt;NiFi RestAPI&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;Refer to &lt;A href="https://stackoverflow.com/questions/51747192/stop-a-nifi-processor-group-as-soon-as-the-execution-is-completed/51747507#51747507" target="_blank"&gt;this&lt;/A&gt; link regards to stop processor group once the execution is completed.&lt;/P&gt;</description>
    <pubDate>Thu, 27 Sep 2018 20:06:01 GMT</pubDate>
    <dc:creator>Shu_ashu</dc:creator>
    <dc:date>2018-09-27T20:06:01Z</dc:date>
  </channel>
</rss>

