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.

How to run Apache Nifi on Windows as a Service

Solved Go to solution

How to run Apache Nifi on Windows as a Service

New Contributor

Hello,

is there some recommended or tested way how to run Apache Nifi as a Windows Service?

All I can find is:

"Currently, installing NiFi as a service is supported only for Linux and Mac OS X users."

https://nifi.apache.org/docs/nifi-docs/html/getting-started.html#installing-as-a-service

I would like to have Apache Nifi running in a way that will automatically start on Windows Server when OS starts and shutdown on OS suhtdown. Having this as a standard system service would be nice but not necessary.

Thanks,

Tomas

1 ACCEPTED SOLUTION

Accepted Solutions

Re: How to run Apache Nifi on Windows as a Service

New Contributor

Thanks, I am checking available service wrappers and procrun seemed old to me. So far I decided to try http://nssm.cc/ . I was looking for some tested or official solution, but I guess there is none.

10 REPLIES 10
Highlighted

Re: How to run Apache Nifi on Windows as a Service

@Tomas Safarik I havent tried it but you can look into procrun. http://commons.apache.org/proper/commons-daemon/procrun.html

Re: How to run Apache Nifi on Windows as a Service

New Contributor

Thanks, I am checking available service wrappers and procrun seemed old to me. So far I decided to try http://nssm.cc/ . I was looking for some tested or official solution, but I guess there is none.

Re: How to run Apache Nifi on Windows as a Service

Super Collaborator

To fix the issue I created a Task to Run NiFi in windows task scheduler , and selected the option to "Run whether user is logged on or not"

Re: How to run Apache Nifi on Windows as a Service

Contributor

@Saikrishna Tarapareddy Thanks for the solution, can this be done for a Production windows server? or just Proof of concept?

Re: How to run Apache Nifi on Windows as a Service

Super Collaborator

This can be done in a PROD server also.

Re: How to run Apache Nifi on Windows as a Service

Contributor

Thanks a lot @Saikrishna Tarapareddy, helps a lot!

Re: How to run Apache Nifi on Windows as a Service

Contributor

@Saikrishna Tarapareddy how did you did it in production? is it clustered or standalone?

Re: How to run Apache Nifi on Windows as a Service

Contributor

Re: How to run Apache Nifi on Windows as a Service

Contributor

@dhieru singh

did you manage to configure your nifi in production? can it be done in cluster?

I manage to configure nifi standalone and task scheduler.