Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

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.