<?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: How can we schedule nifi data flow ? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-can-we-schedule-nifi-data-flow/m-p/117814#M38722</link>
    <description>&lt;P&gt;Got it here: &lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/questions/64771/unable-to-updateexecute-processor-though-nifi-rest.html" target="_blank"&gt;https://community.hortonworks.com/questions/64771/unable-to-updateexecute-processor-though-nifi-rest.html&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 21 Dec 2016 19:58:27 GMT</pubDate>
    <dc:creator>anubhav_r_raika</dc:creator>
    <dc:date>2016-12-21T19:58:27Z</dc:date>
    <item>
      <title>How can we schedule nifi data flow ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-can-we-schedule-nifi-data-flow/m-p/117809#M38717</link>
      <description>&lt;P&gt;I want to extract twitter data on daily basis for some time. Is there any way to do so using Nifi? &lt;/P&gt;</description>
      <pubDate>Wed, 24 Aug 2016 21:52:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-can-we-schedule-nifi-data-flow/m-p/117809#M38717</guid>
      <dc:creator>sushant_bharti</dc:creator>
      <dc:date>2016-08-24T21:52:38Z</dc:date>
    </item>
    <item>
      <title>Re: How can we schedule nifi data flow ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-can-we-schedule-nifi-data-flow/m-p/117810#M38718</link>
      <description>&lt;P&gt; &lt;A rel="user" href="https://community.cloudera.com/users/12334/sushantbharti.html" nodeid="12334"&gt;@Sushant Bharti&lt;/A&gt; you have options:&lt;/P&gt;&lt;P&gt;The first configuration option is the Scheduling Strategy. There are three possible options for scheduling components:&lt;/P&gt;&lt;UL&gt;
&lt;LI&gt;&lt;STRONG&gt;Timer driven&lt;/STRONG&gt;: This is the default mode. The Processor will be scheduled to run on a regular interval. The interval at which the Processor is run is defined by the ‘Run schedule’ option (see below).&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Event driven&lt;/STRONG&gt;: When this mode is selected, the Processor will be triggered to run by an event, and that event occurs when FlowFiles enter Connections feeding this Processor. This mode is currently considered experimental and is not supported by all Processors. When this mode is selected, the ‘Run schedule’ option is not configurable, as the Processor is not triggered to run periodically but as the result of an event. Additionally, this is the only mode for which the ‘Concurrent tasks’ option can be set to 0. In this case, the number of threads is limited only by the size of the Event-Driven Thread Pool that the administrator has configured.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;CRON driven&lt;/STRONG&gt;: When using the CRON driven scheduling mode, the Processor is scheduled to run periodically, similar to the Timer driven scheduling mode. However, the CRON driven mode provides significantly more flexibility at the expense of increasing the complexity of the configuration. This value is made up of six fields, each separated by a space. &lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;more info &lt;A href="https://nifi.apache.org/docs/nifi-docs/html/user-guide.html"&gt;here&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Aug 2016 21:59:57 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-can-we-schedule-nifi-data-flow/m-p/117810#M38718</guid>
      <dc:creator>sunile_manjee</dc:creator>
      <dc:date>2016-08-24T21:59:57Z</dc:date>
    </item>
    <item>
      <title>Re: How can we schedule nifi data flow ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-can-we-schedule-nifi-data-flow/m-p/117811#M38719</link>
      <description>&lt;P&gt;Anything you can do via the browser can be done my making calls to the NiFi-API.&lt;/P&gt;&lt;P&gt;You could either setup an external process to run a couple curl commands to start and they stop the GetTwitter processor in your flow or you could us a couple invokeHTTP processors in your dataflow (configured using the cron scheduling strategy) to start and stop the GetTwitter processor on a given schedule.&lt;/P&gt;&lt;P&gt;Matt
&lt;/P&gt;</description>
      <pubDate>Wed, 24 Aug 2016 22:04:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-can-we-schedule-nifi-data-flow/m-p/117811#M38719</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2016-08-24T22:04:19Z</dc:date>
    </item>
    <item>
      <title>Re: How can we schedule nifi data flow ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-can-we-schedule-nifi-data-flow/m-p/117812#M38720</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/12334/sushantbharti.html" nodeid="12334" target="_blank"&gt;@Sushant Bharti&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;1) Simple way to schedule would be to use scheduler in the processor to run with cron/timer like below:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="6938-screen-shot-2016-08-24-at-110038-am.png" style="width: 1094px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/22993i9AC16B67B6055B58/image-size/medium?v=v2&amp;amp;px=400" role="button" title="6938-screen-shot-2016-08-24-at-110038-am.png" alt="6938-screen-shot-2016-08-24-at-110038-am.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In this case, the flow will be running, but the processor will only pull data at the time you specify, you can chose from options there.&lt;/P&gt;&lt;P&gt;2) The other way around this is to use nifi-api to start/stop the processors from outside: you can find details about this in the below question:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/questions/48445/executing-apache-nifi-through-a-shell-script.html#answer-48606" target="_blank" rel="nofollow noopener noreferrer"&gt;https://community.hortonworks.com/questions/48445/executing-apache-nifi-through-a-shell-script.html#answer-48606&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jobin George&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2019 10:47:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-can-we-schedule-nifi-data-flow/m-p/117812#M38720</guid>
      <dc:creator>jgeorge</dc:creator>
      <dc:date>2019-08-19T10:47:21Z</dc:date>
    </item>
    <item>
      <title>Re: How can we schedule nifi data flow ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-can-we-schedule-nifi-data-flow/m-p/117813#M38721</link>
      <description>&lt;P&gt;Hi Matt,&lt;/P&gt;&lt;P&gt;I am working on this "curl" stuff but getting an error.&lt;/P&gt;&lt;P&gt;I am using NiFi 1.0&lt;/P&gt;&lt;P&gt;Can you please see the below statements and let me know what I am missing?&lt;/P&gt;&lt;P&gt;This works fine: curl -i -X GET &lt;A href="http://localhost:8080/nifi-api/processors/1b943f28-3803-15dd-aec4-d362e560fbaf/state"&gt;http://localhost:8080/nifi-api/processors/1b943f28-3803-15dd-aec4-d362e560fbaf/state&lt;/A&gt;&lt;/P&gt;&lt;P&gt;It gives a json as expected.&lt;/P&gt;&lt;P&gt;............................&lt;/P&gt;&lt;P&gt;This does not work: curl -i -X PUT -H 'Content-Type: application/json' -d '{"version":27,"clientId":"ddf4a732-0158-1000-419b-512493387a32"},"processors":{"id":"1b943f28-3803-15dd-aec4-362e560fbaf","state":"RUNNING"}' &lt;A href="http://localhost:8080/nifi-api/processors/1b943f28-3803-15dd-aec4-d362e560fbaf/"&gt;http://localhost:8080/nifi-api/processors/1b943f28-3803-15dd-aec4-d362e560fbaf/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;This gives:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;HTTP/1.1 400 Bad Request&lt;/STRONG&gt;
Date: Wed, 21 Dec 2016 05:50:43 GMT
Content-Type: text/plain
Transfer-Encoding: chunked
Server: Jetty(9.3.9.v20160517)
&lt;STRONG&gt;Message body is malformed. Unable to map into expected format.&lt;/STRONG&gt;
&lt;/P&gt;</description>
      <pubDate>Wed, 21 Dec 2016 17:52:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-can-we-schedule-nifi-data-flow/m-p/117813#M38721</guid>
      <dc:creator>anubhav_r_raika</dc:creator>
      <dc:date>2016-12-21T17:52:53Z</dc:date>
    </item>
    <item>
      <title>Re: How can we schedule nifi data flow ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-can-we-schedule-nifi-data-flow/m-p/117814#M38722</link>
      <description>&lt;P&gt;Got it here: &lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/questions/64771/unable-to-updateexecute-processor-though-nifi-rest.html" target="_blank"&gt;https://community.hortonworks.com/questions/64771/unable-to-updateexecute-processor-though-nifi-rest.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Dec 2016 19:58:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-can-we-schedule-nifi-data-flow/m-p/117814#M38722</guid>
      <dc:creator>anubhav_r_raika</dc:creator>
      <dc:date>2016-12-21T19:58:27Z</dc:date>
    </item>
    <item>
      <title>Re: How can we schedule nifi data flow ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-can-we-schedule-nifi-data-flow/m-p/117815#M38723</link>
      <description>&lt;P&gt;Please advice if the Event driven will be now available/implemented for NiFi 1.x and later versions?&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jan 2017 16:57:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-can-we-schedule-nifi-data-flow/m-p/117815#M38723</guid>
      <dc:creator>sahaavish</dc:creator>
      <dc:date>2017-01-09T16:57:26Z</dc:date>
    </item>
  </channel>
</rss>

