<?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: setting cron driven jobs in nifi in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/setting-cron-driven-jobs-in-nifi/m-p/220250#M82063</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/74237/gillu-rock-in.html" nodeid="74237"&gt;@Gillu
 Varghese
&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; NiFi uses quartz cron expression for your case use below expression to run processor &lt;/P&gt;&lt;PRE&gt;0 0/15 2 1/1 * ? *&lt;/PRE&gt;&lt;P style="margin-left: 20px;"&gt;runs at &lt;STRONG&gt;2:00AM,2:15AM,2:30AM,2:45AM&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&amp;gt; If you want to run at 3:00 AM then we need to use another trigger processor to be scheduled separately with below cron expression.&lt;/P&gt;&lt;PRE&gt;0 0 3 1/1 * ? *&lt;/PRE&gt;&lt;P&gt;Refer to &lt;A href="http://www.cronmaker.com/" target="_blank"&gt;this&lt;/A&gt; link to create/validate quartz cron expressions and &lt;A href="https://community.hortonworks.com/questions/63513/helping-setting-up-cron-based-nifi-processor.html" target="_blank"&gt;this&lt;/A&gt; for more details regarding cron scheduling in NiFi.&lt;/P&gt;&lt;P&gt;In addition we can also add minutes with comma seperators&lt;/P&gt;&lt;PRE&gt;59 0,15,30,45,59 2 1/1 * ? *&lt;/PRE&gt;&lt;P&gt;runs at &lt;STRONG&gt;2:00:59AM,2:15&lt;/STRONG&gt;&lt;STRONG&gt;:59&lt;/STRONG&gt;&lt;STRONG&gt;AM,2:30&lt;/STRONG&gt;&lt;STRONG&gt;:59&lt;/STRONG&gt;&lt;STRONG&gt;AM,2:45&lt;/STRONG&gt;&lt;STRONG&gt;:59&lt;/STRONG&gt;&lt;STRONG&gt;AM,2:59:59AM&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;If the Answer helped to resolve your issue, &lt;STRONG&gt;Click on Accept button below to accept the answer, &lt;/STRONG&gt;That would be great help to Community users to find solution quickly for these kind of issues.&lt;/P&gt;</description>
    <pubDate>Tue, 14 Aug 2018 09:11:58 GMT</pubDate>
    <dc:creator>Shu_ashu</dc:creator>
    <dc:date>2018-08-14T09:11:58Z</dc:date>
    <item>
      <title>setting cron driven jobs in nifi</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/setting-cron-driven-jobs-in-nifi/m-p/220248#M82061</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I wanted to setup a processor which needs to run from 2:00  to 3:00 AM (every 15 mins).&lt;/P&gt;&lt;P&gt;can you please let me know if this will work:&lt;/P&gt;&lt;P&gt;0 0/15 2-3 * * ?&lt;/P&gt;</description>
      <pubDate>Tue, 14 Aug 2018 08:55:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/setting-cron-driven-jobs-in-nifi/m-p/220248#M82061</guid>
      <dc:creator>gillu_rock_in</dc:creator>
      <dc:date>2018-08-14T08:55:07Z</dc:date>
    </item>
    <item>
      <title>Re: setting cron driven jobs in nifi</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/setting-cron-driven-jobs-in-nifi/m-p/220249#M82062</link>
      <description>&lt;P&gt;0 0/15 2-3 * * ?&lt;/P&gt;</description>
      <pubDate>Tue, 14 Aug 2018 08:55:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/setting-cron-driven-jobs-in-nifi/m-p/220249#M82062</guid>
      <dc:creator>gillu_rock_in</dc:creator>
      <dc:date>2018-08-14T08:55:49Z</dc:date>
    </item>
    <item>
      <title>Re: setting cron driven jobs in nifi</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/setting-cron-driven-jobs-in-nifi/m-p/220250#M82063</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/74237/gillu-rock-in.html" nodeid="74237"&gt;@Gillu
 Varghese
&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; NiFi uses quartz cron expression for your case use below expression to run processor &lt;/P&gt;&lt;PRE&gt;0 0/15 2 1/1 * ? *&lt;/PRE&gt;&lt;P style="margin-left: 20px;"&gt;runs at &lt;STRONG&gt;2:00AM,2:15AM,2:30AM,2:45AM&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&amp;gt; If you want to run at 3:00 AM then we need to use another trigger processor to be scheduled separately with below cron expression.&lt;/P&gt;&lt;PRE&gt;0 0 3 1/1 * ? *&lt;/PRE&gt;&lt;P&gt;Refer to &lt;A href="http://www.cronmaker.com/" target="_blank"&gt;this&lt;/A&gt; link to create/validate quartz cron expressions and &lt;A href="https://community.hortonworks.com/questions/63513/helping-setting-up-cron-based-nifi-processor.html" target="_blank"&gt;this&lt;/A&gt; for more details regarding cron scheduling in NiFi.&lt;/P&gt;&lt;P&gt;In addition we can also add minutes with comma seperators&lt;/P&gt;&lt;PRE&gt;59 0,15,30,45,59 2 1/1 * ? *&lt;/PRE&gt;&lt;P&gt;runs at &lt;STRONG&gt;2:00:59AM,2:15&lt;/STRONG&gt;&lt;STRONG&gt;:59&lt;/STRONG&gt;&lt;STRONG&gt;AM,2:30&lt;/STRONG&gt;&lt;STRONG&gt;:59&lt;/STRONG&gt;&lt;STRONG&gt;AM,2:45&lt;/STRONG&gt;&lt;STRONG&gt;:59&lt;/STRONG&gt;&lt;STRONG&gt;AM,2:59:59AM&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;If the Answer helped to resolve your issue, &lt;STRONG&gt;Click on Accept button below to accept the answer, &lt;/STRONG&gt;That would be great help to Community users to find solution quickly for these kind of issues.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Aug 2018 09:11:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/setting-cron-driven-jobs-in-nifi/m-p/220250#M82063</guid>
      <dc:creator>Shu_ashu</dc:creator>
      <dc:date>2018-08-14T09:11:58Z</dc:date>
    </item>
    <item>
      <title>Re: setting cron driven jobs in nifi</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/setting-cron-driven-jobs-in-nifi/m-p/220251#M82064</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/18929/yaswanthmuppireddy.html" nodeid="18929"&gt;@Shu&lt;/A&gt; thanks for the quick reply..wanted to know what is the difference between 0 0/15 2-3 * * ? and 0 0/15 2-3 1/1 * ? *&lt;/P&gt;</description>
      <pubDate>Tue, 14 Aug 2018 09:16:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/setting-cron-driven-jobs-in-nifi/m-p/220251#M82064</guid>
      <dc:creator>gillu_rock_in</dc:creator>
      <dc:date>2018-08-14T09:16:00Z</dc:date>
    </item>
    <item>
      <title>Re: setting cron driven jobs in nifi</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/setting-cron-driven-jobs-in-nifi/m-p/220252#M82065</link>
      <description>&lt;P&gt;there are 2 asterix before ? in first exp and asterix between ?..symbol is not getting pasted here&lt;/P&gt;</description>
      <pubDate>Tue, 14 Aug 2018 09:17:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/setting-cron-driven-jobs-in-nifi/m-p/220252#M82065</guid>
      <dc:creator>gillu_rock_in</dc:creator>
      <dc:date>2018-08-14T09:17:43Z</dc:date>
    </item>
    <item>
      <title>Re: setting cron driven jobs in nifi</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/setting-cron-driven-jobs-in-nifi/m-p/220253#M82066</link>
      <description>&lt;P&gt;&lt;A href="https://community.hortonworks.com/questions/212237/setting-cron-driven-jobs-in-nifi.html"&gt;@Gillu Varghese&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Quartz cron expression needs to be atleast 6
fileds and &lt;STRONG&gt;last field will be optional&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;0 0/15 2 ? * * //no specific value for day of month as we have scheduled at 2 AM so cron triggers starting at 2AM&lt;/PRE&gt;&lt;PRE&gt;0 0/15 2 1/1 &lt;EM&gt;? //invalid as month field doesn’t allow ? in it.&lt;/EM&gt;&lt;/PRE&gt;&lt;PRE&gt;0 0/15 2 1/1 * ? &lt;BR /&gt;(or)&lt;BR /&gt;0 0/15 2 * * ? //start first day of the month and execute
each 1 day at 2AM&lt;/PRE&gt;&lt;P&gt;In this case both
expressions will be same.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Please refer to &lt;A href="https://stackoverflow.com/questions/39328351/is-there-a-difference-between-and-in-cron-expressions-strange-example" target="_blank"&gt;this&lt;/A&gt; awesome explanation regards to Quartz cron:&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;0 0 0/1 1/1 * ? *
| |  |   |  | | | 
| |  |   |  | | +-- Year              (range: 1970-2099)
| |  |   |  | +---- Day of the Week   (range: 1-7 or SUN-SAT)
| |  |   |  +------ Month of the Year (range: 0-11 or JAN-DEC)
| |  |   +--------- Day of the Month  (range: 1-31)
| |  +------------- Hour              (range: 0-23)
| +---------------- Minute            (range: 0-59)
+------------------ Second            (range: 0-59)
&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;* (“all values”) &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;used to select all values within a field. For
example, “” in the minute field means *“every minute”. &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;? (“no specific value”)&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;useful when you need to specify something in
one of the two fields in which the character is allowed, but not the other. For
example, if I want my trigger to fire on a particular day of the month (say,
the 10th), but don’t care what day of the week that happens to be, I would put
“10” in the day-of-month field, and “?” in the day-of-week field. &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;/ used to specify increments. &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;For example: “0/15” in the seconds field means
“the seconds 0, 15, 30, and 45”. And “5/15” in the seconds field means “the
seconds 5, 20, 35, and 50”. You can also specify ‘/’ after the ‘’ character -
in this case ‘’ is equivalent to having ‘0’ before the ‘/’. ‘1/3’ in the
day-of-month field means “fire every 3 days starting on the first day of the
month”.&lt;/P&gt;&lt;P&gt;To explain difference between ? and * in
the expressions, first of all take a look at this table: &lt;/P&gt;&lt;PRE&gt;Field Name      Mandatory   Allowed Values      Allowed Special Characters
Seconds         YES         0-59                , - * /
Minutes         YES         0-59                , - * /
Hours           YES         0-23                , - * /
Day of month    YES         1-31                , - * ? / L W   //allowed '?'
Month           YES         1-12 or JAN-DEC     , - * /
Day of week     YES         1-7 or SUN-SAT      , - * ? / L #   //allowed '?'
Year            NO          empty, 1970-2099    , - * /&lt;/PRE&gt;</description>
      <pubDate>Tue, 14 Aug 2018 10:30:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/setting-cron-driven-jobs-in-nifi/m-p/220253#M82066</guid>
      <dc:creator>Shu_ashu</dc:creator>
      <dc:date>2018-08-14T10:30:49Z</dc:date>
    </item>
    <item>
      <title>Re: setting cron driven jobs in nifi</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/setting-cron-driven-jobs-in-nifi/m-p/220254#M82067</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/18929/yaswanthmuppireddy.html" nodeid="18929"&gt;@Shu&lt;/A&gt; As you have said above instead of having two triggers,cant have a single one as 0 0/15 2-3 1/1 * ? * which would run from 2am to 3am&lt;/P&gt;</description>
      <pubDate>Tue, 14 Aug 2018 10:57:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/setting-cron-driven-jobs-in-nifi/m-p/220254#M82067</guid>
      <dc:creator>gillu_rock_in</dc:creator>
      <dc:date>2018-08-14T10:57:19Z</dc:date>
    </item>
    <item>
      <title>Re: setting cron driven jobs in nifi</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/setting-cron-driven-jobs-in-nifi/m-p/220255#M82068</link>
      <description>&lt;P&gt;&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/86470-cron.png"&gt;&lt;/A&gt;&lt;A rel="user" href="https://community.cloudera.com/users/18929/yaswanthmuppireddy.html" nodeid="18929"&gt;@Shu&lt;/A&gt; cron.png&lt;/P&gt;</description>
      <pubDate>Tue, 14 Aug 2018 11:11:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/setting-cron-driven-jobs-in-nifi/m-p/220255#M82068</guid>
      <dc:creator>gillu_rock_in</dc:creator>
      <dc:date>2018-08-14T11:11:35Z</dc:date>
    </item>
    <item>
      <title>Re: setting cron driven jobs in nifi</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/setting-cron-driven-jobs-in-nifi/m-p/220256#M82069</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/74237/gillu-rock-in.html" nodeid="74237"&gt;@Gillu
 Varghese
&lt;/A&gt;&lt;P&gt;Both &lt;STRONG&gt;cron &lt;/STRONG&gt;triggers in the screenshot are same you can use either of them for scheduling purpose.&lt;/P&gt;&lt;P&gt;We cannot trigger just at &lt;STRONG&gt;3AM&lt;/STRONG&gt;, the largest time that we can trigger is at &lt;STRONG&gt;2:59:59AM&lt;/STRONG&gt; with one cron expression.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Aug 2018 11:28:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/setting-cron-driven-jobs-in-nifi/m-p/220256#M82069</guid>
      <dc:creator>Shu_ashu</dc:creator>
      <dc:date>2018-08-14T11:28:06Z</dc:date>
    </item>
  </channel>
</rss>

