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]
Created 02-15-2017 11:25 AM
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
Created 02-15-2017 07:04 PM
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.
Created 04-10-2019 05:44 PM
https://github.com/mikenac/nifi-windowsservice
https://commons.apache.org/daemon/procrun.html
https://commons.apache.org/proper/commons-daemon/
I haven't used the above for NiFi but used win-scheduler. (commons daemon was easy to add to mina sshd so probably easy for NiFi too)
using windows scheduler works also
gpedit.msc - add stop script
another option may be
download MSI for NiFi. open it in 7zip. Extract the powershell scripts for setting up the windows service.
from here http://public-repo-1.hortonworks.com/HDF/windows/3.x/updates/3.1.0.0/nifi-3.1.0.0-564.msi
You can also download NiFi from here https://www.cloudera.com/downloads/hdf.html
Created 02-01-2020 08:36 AM
Hello,
did you make this work? Is it possible to run the Nifi as a service on Windows in some way? Please give us more detailed information about it, if you succeeded...
Can't apps like AlwaysUp or JSL work? Java Service Wrappers...
Thanks.