Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

Automated Start/Stop of a NiFi Processor

avatar
New Member

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

avatar
Master Guru

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.

View solution in original post

2 REPLIES 2

avatar
Master Guru

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.

avatar
New Member

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