Created 10-03-2018 09:13 AM
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.
Created 10-03-2018 06:34 PM
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.
Created 10-03-2018 06:34 PM
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.
Created 10-04-2018 02:48 AM
Seems that I need to get my hands dirty on NiFi's API. Thank you for your response.