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.

Automated Start/Stop of a NiFi Processor

SOLVED Go to solution
Highlighted

Automated Start/Stop of a NiFi Processor

New Contributor

Good day. Is there any way to do automation on starting and stopping a NiFi processor at a certain time? Like after 30 minutes it would stop then after 1 minute it would start again.

I've checked the scheduling but I don't know if it is possible to perform a stop on it since what I found is only for starting the processor. I've also researched that it is possible through NiFi's API with programming but might be better if there's a simpler approach that can be accessed through NiFi's Web UI. Thanks.

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Automated Start/Stop of a NiFi Processor

When you start a processor it is considered "scheduled" which means it then executes according to the scheduling strategy. The two scheduling strategies are "Timer Driven" like "Run every 5 mins" or CRON driven which executes according to a CRON expression.

You can also use Timer Driven with a very low Run Schedule like 1 second, and then use the REST API to start and stop the processor when you need to.

2 REPLIES 2

Re: Automated Start/Stop of a NiFi Processor

When you start a processor it is considered "scheduled" which means it then executes according to the scheduling strategy. The two scheduling strategies are "Timer Driven" like "Run every 5 mins" or CRON driven which executes according to a CRON expression.

You can also use Timer Driven with a very low Run Schedule like 1 second, and then use the REST API to start and stop the processor when you need to.

Re: Automated Start/Stop of a NiFi Processor

New Contributor

Seems that I need to get my hands dirty on NiFi's API. Thank you for your response.