Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]

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.

How to trigger a nifi processor on nifi restart?

avatar
Master Collaborator

Hello ,

I have a scenario where I need to run a processor on NiFi restart.

Is there any way to trigger a nifi processor whenever nifi restarts ?

Thanks in advance,

Mahendra

1 ACCEPTED SOLUTION

avatar
Master Guru
@Mahendra Hegde

it's possible in NiFi but it depends on how frequently you are going to restart NiFi instance.

Use GenerateFlowFile (or) other processors and schedule the processor as shown below

93319-screen-shot-2018-11-20-at-33540-am.png

With the above schedule GenerateFlowFile processor going to run once we start processor and next run will be after 1111111110 sec (or) when you restart NiFi instance.

For your case adjust the Run Schedule time based on your NiFi restart time.

View solution in original post

1 REPLY 1

avatar
Master Guru
@Mahendra Hegde

it's possible in NiFi but it depends on how frequently you are going to restart NiFi instance.

Use GenerateFlowFile (or) other processors and schedule the processor as shown below

93319-screen-shot-2018-11-20-at-33540-am.png

With the above schedule GenerateFlowFile processor going to run once we start processor and next run will be after 1111111110 sec (or) when you restart NiFi instance.

For your case adjust the Run Schedule time based on your NiFi restart time.