You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@nifi.apache.org by "Gadiputi, Sravani" <sr...@capgemini.com> on 2016/07/04 05:50:42 UTC

CRON driven scheduling in NiFi

Hi Team,


As per my project requirement I have to schedule  the process for every Saturday 8.30pm.
So I have used the CRON driven type scheduling in processor in order to repeat the process for every Saturday.
But its is throwing error while setup the value for "day of the week".
As per NiFi documentation below is the instruction should fallow.

1.       Seconds

2.       Minutes

3.       Hours

4.       Day of Month

5.       Month

6.       Day of Week

7.       Year
As per instructions, I have given details.
Example I have tried for scheduling the process for  every Wednesday 3:00pm and per every 5 sec.
So I have given  in  CRON driven schedule     "*/5 * 3 * 6 5 ?"
It is working fine for "*/5 * 3 * 6 ?"-up to day of the month.
When I try to particular day of the week it is not working, I mean while configuring the values itself its throwing configuration error.
Error: "scheduling '*/5 * 3 * 6 4 ?' is not a valid CRON expression".

I stuck with this and it is more impacting on my development.

Please help me in this.

Thanks in advance!!!


Regards,
Sravani



This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.

Re: CRON driven scheduling in NiFi

Posted by Rob Moran <rm...@gmail.com>.
Glad you got that working for you, Sravani.

All –
I think some areas in need of UI improvement have been identified here, so
I filed a JIRA to capture those - please take a look and any additional
ideas there.
https://issues.apache.org/jira/browse/NIFI-2172

Thanks!

Rob

On Mon, Jul 4, 2016 at 8:50 AM, Vincent Russell <vi...@gmail.com>
wrote:

> It would be a nice addition to the UI to add a textual representation of
> the cron expression as a popup after entering or changing the value and
> maybe on hover as well.
>
> On Jul 4, 2016 6:27 AM, "Gadiputi, Sravani" <
> sravani.gadiputi@capgemini.com> wrote:
>
>> Thanks Lee, now it is working fine as per our requirement(0 30 20 ? * SAT
>> *).
>>
>> Thanks&Regards,
>> Sravani
>>
>> -----Original Message-----
>> From: Lee Laim (leelaim) [mailto:leelaim@micron.com]
>> Sent: Monday, July 04, 2016 1:29 PM
>> To: users@nifi.apache.org
>> Subject: Re: CRON driven scheduling in NiFi
>>
>>
>> Sravani,
>>
>> I believe the cron scheduling is based on the Quartz scheduler, which
>> differs from the UNIX crontab.  A question mark represents no specific
>> value for either dayofweek or dayofmonth
>>
>> 0 30 20 ? * SAT *
>> should work for every Saturday 830pm (Saturday regardless of dayofmonth).
>>
>> Thanks,
>>  Lee
>>
>> leelaim@micron.com<ma...@micron.com>
>>
>>
>>
>>
>> On Jul 3, 2016, at 11:50 PM, Gadiputi, Sravani <
>> sravani.gadiputi@capgemini.com<ma...@capgemini.com>>
>> wrote:
>> Hi Team,
>>
>>
>> As per my project requirement I have to schedule  the process for every
>> Saturday 8.30pm.
>> So I have used the CRON driven type scheduling in processor in order to
>> repeat the process for every Saturday.
>> But its is throwing error while setup the value for “day of the week”.
>> As per NiFi documentation below is the instruction should fallow.
>>
>> 1.       Seconds
>>
>> 2.       Minutes
>>
>> 3.       Hours
>>
>> 4.       Day of Month
>>
>> 5.       Month
>>
>> 6.       Day of Week
>>
>> 7.       Year
>> As per instructions, I have given details.
>> Example I have tried for scheduling the process for  every Wednesday
>> 3:00pm and per every 5 sec.
>> So I have given  in  CRON driven schedule     “*/5 * 3 * 6 5 ?”
>> It is working fine for “*/5 * 3 * 6 ?”—up to day of the month.
>> When I try to particular day of the week it is not working, I mean while
>> configuring the values itself its throwing configuration error.
>> Error: ”scheduling ‘*/5 * 3 * 6 4 ?’ is not a valid CRON expression”.
>>
>> I stuck with this and it is more impacting on my development.
>>
>> Please help me in this.
>>
>> Thanks in advance!!!
>>
>>
>> Regards,
>> Sravani
>>
>>
>>
>>
>> This message contains information that may be privileged or confidential
>> and is the property of the Capgemini Group. It is intended only for the
>> person to whom it is addressed. If you are not the intended recipient, you
>> are not authorized to read, print, retain, copy, disseminate, distribute,
>> or use this message or any part thereof. If you receive this message in
>> error, please notify the sender immediately and delete all copies of this
>> message.
>>
>

RE: CRON driven scheduling in NiFi

Posted by Vincent Russell <vi...@gmail.com>.
It would be a nice addition to the UI to add a textual representation of
the cron expression as a popup after entering or changing the value and
maybe on hover as well.

On Jul 4, 2016 6:27 AM, "Gadiputi, Sravani" <sr...@capgemini.com>
wrote:

> Thanks Lee, now it is working fine as per our requirement(0 30 20 ? * SAT
> *).
>
> Thanks&Regards,
> Sravani
>
> -----Original Message-----
> From: Lee Laim (leelaim) [mailto:leelaim@micron.com]
> Sent: Monday, July 04, 2016 1:29 PM
> To: users@nifi.apache.org
> Subject: Re: CRON driven scheduling in NiFi
>
>
> Sravani,
>
> I believe the cron scheduling is based on the Quartz scheduler, which
> differs from the UNIX crontab.  A question mark represents no specific
> value for either dayofweek or dayofmonth
>
> 0 30 20 ? * SAT *
> should work for every Saturday 830pm (Saturday regardless of dayofmonth).
>
> Thanks,
>  Lee
>
> leelaim@micron.com<ma...@micron.com>
>
>
>
>
> On Jul 3, 2016, at 11:50 PM, Gadiputi, Sravani <
> sravani.gadiputi@capgemini.com<ma...@capgemini.com>>
> wrote:
> Hi Team,
>
>
> As per my project requirement I have to schedule  the process for every
> Saturday 8.30pm.
> So I have used the CRON driven type scheduling in processor in order to
> repeat the process for every Saturday.
> But its is throwing error while setup the value for “day of the week”.
> As per NiFi documentation below is the instruction should fallow.
>
> 1.       Seconds
>
> 2.       Minutes
>
> 3.       Hours
>
> 4.       Day of Month
>
> 5.       Month
>
> 6.       Day of Week
>
> 7.       Year
> As per instructions, I have given details.
> Example I have tried for scheduling the process for  every Wednesday
> 3:00pm and per every 5 sec.
> So I have given  in  CRON driven schedule     “*/5 * 3 * 6 5 ?”
> It is working fine for “*/5 * 3 * 6 ?”—up to day of the month.
> When I try to particular day of the week it is not working, I mean while
> configuring the values itself its throwing configuration error.
> Error: ”scheduling ‘*/5 * 3 * 6 4 ?’ is not a valid CRON expression”.
>
> I stuck with this and it is more impacting on my development.
>
> Please help me in this.
>
> Thanks in advance!!!
>
>
> Regards,
> Sravani
>
>
>
>
> This message contains information that may be privileged or confidential
> and is the property of the Capgemini Group. It is intended only for the
> person to whom it is addressed. If you are not the intended recipient, you
> are not authorized to read, print, retain, copy, disseminate, distribute,
> or use this message or any part thereof. If you receive this message in
> error, please notify the sender immediately and delete all copies of this
> message.
>

RE: CRON driven scheduling in NiFi

Posted by "Gadiputi, Sravani" <sr...@capgemini.com>.
Thanks Lee, now it is working fine as per our requirement(0 30 20 ? * SAT *).

Thanks&Regards,
Sravani

-----Original Message-----
From: Lee Laim (leelaim) [mailto:leelaim@micron.com] 
Sent: Monday, July 04, 2016 1:29 PM
To: users@nifi.apache.org
Subject: Re: CRON driven scheduling in NiFi


Sravani,

I believe the cron scheduling is based on the Quartz scheduler, which differs from the UNIX crontab.  A question mark represents no specific value for either dayofweek or dayofmonth

0 30 20 ? * SAT *
should work for every Saturday 830pm (Saturday regardless of dayofmonth).

Thanks,
 Lee

leelaim@micron.com<ma...@micron.com>




On Jul 3, 2016, at 11:50 PM, Gadiputi, Sravani <sr...@capgemini.com>> wrote:
Hi Team,


As per my project requirement I have to schedule  the process for every Saturday 8.30pm.
So I have used the CRON driven type scheduling in processor in order to repeat the process for every Saturday.
But its is throwing error while setup the value for “day of the week”.
As per NiFi documentation below is the instruction should fallow.

1.       Seconds

2.       Minutes

3.       Hours

4.       Day of Month

5.       Month

6.       Day of Week

7.       Year
As per instructions, I have given details.
Example I have tried for scheduling the process for  every Wednesday 3:00pm and per every 5 sec.
So I have given  in  CRON driven schedule     “*/5 * 3 * 6 5 ?”
It is working fine for “*/5 * 3 * 6 ?”—up to day of the month.
When I try to particular day of the week it is not working, I mean while configuring the values itself its throwing configuration error.
Error: ”scheduling ‘*/5 * 3 * 6 4 ?’ is not a valid CRON expression”.

I stuck with this and it is more impacting on my development.

Please help me in this.

Thanks in advance!!!


Regards,
Sravani




This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.

Re: CRON driven scheduling in NiFi

Posted by "Lee Laim (leelaim)" <le...@micron.com>.
Sravani,

I believe the cron scheduling is based on the Quartz scheduler, which differs from the UNIX crontab.  A question mark represents no specific value for either dayofweek or dayofmonth

0 30 20 ? * SAT *
should work for every Saturday 830pm (Saturday regardless of dayofmonth).

Thanks,
 Lee

leelaim@micron.com<ma...@micron.com>




On Jul 3, 2016, at 11:50 PM, Gadiputi, Sravani <sr...@capgemini.com>> wrote:
Hi Team,


As per my project requirement I have to schedule  the process for every Saturday 8.30pm.
So I have used the CRON driven type scheduling in processor in order to repeat the process for every Saturday.
But its is throwing error while setup the value for “day of the week”.
As per NiFi documentation below is the instruction should fallow.

1.       Seconds

2.       Minutes

3.       Hours

4.       Day of Month

5.       Month

6.       Day of Week

7.       Year
As per instructions, I have given details.
Example I have tried for scheduling the process for  every Wednesday 3:00pm and per every 5 sec.
So I have given  in  CRON driven schedule     “*/5 * 3 * 6 5 ?”
It is working fine for “*/5 * 3 * 6 ?”—up to day of the month.
When I try to particular day of the week it is not working, I mean while configuring the values itself its throwing configuration error.
Error: ”scheduling ‘*/5 * 3 * 6 4 ?’ is not a valid CRON expression”.

I stuck with this and it is more impacting on my development.

Please help me in this.

Thanks in advance!!!


Regards,
Sravani




This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.