Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Help in setting up Holiday Calendar in Nifi

Help in setting up Holiday Calendar in Nifi

Contributor

Used case : I dont want to schedule NiFi jobs to run on US holidays. Does NiFi has feature to integrate customized calendar dates and to schedule the data flows.

1 REPLY 1
Highlighted

Re: Help in setting up Holiday Calendar in Nifi

Master Guru

@Gubbi 

 

NiFi processor components offer one or more of the following scheduling strategies:

 

1. Timer Driven <-- When used, processor will request a thread every X amount of time as configured in the "Run Schedule".
2. Cron Driven <-- When used, processor will execute based on configured simple Quartz Cron in the "run schedule" configuration field.  http://www.quartz-scheduler.org/documentation/quartz-2.3.0/tutorials/crontrigger.html

3. Event Driven  <-- This is consider experimental and should not be used. Improvements to Timer Driven over the years has negated the usefulness of this strategy and it has been abandoned.  Only still exist to avoid breaking back wards compatibility for users who upgrade.  It will eventually be deprecated and removed.

 

None of these option will provide you with the ability to integrate with a calendar for specifically executing on US holidays.   That being said, everything you can do via the UI, you can also accomplish via external calls to the NiFi rest-api (this includes starting and stopping NiFi processors).  So technically you could create you own external scheduler that makes calls to NiFi's rest-api to start specific processors and then again to turn them off later.

NiFi's rest-api documentation:
https://nifi.apache.org/docs/nifi-docs/rest-api/index.html

 

Hope this answers your question,

Matt

Don't have an account?
Coming from Hortonworks? Activate your account here