Skip to content

mikenac/nifi-windowsservice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nifi-windowsservice

Apache NiFi Windows Service Wrapper

Wrapper for running Apache NiFi as a Windows service. This wrapper is using the Apache Commons ProcRun daemon (like Tomcat).

Master Branch: example branch parameter

Last PR: example event parameter

Dependencies

  1. Maven 3.3+
  2. Java 1.8
  3. Apache NiFi

Build

  1. Download and build Apache NiFi using maven. This project needs nifi-bootrap to compile and run, or at least that jar file.
  2. The file pom.xml contains a property for the NiFi version. Adjust as necessary before building.
  3. Download the source and run: mvn install. An output directory will be created at $root/Dist.

Installation

  1. Copy the nifi-windowsservice.VERSION.jar file into NiFi's /lib/bootstrap directory.
  2. Copy everything in /dist/bin to NiFi's /bin folder.
  3. Execute /bin/install_service.bat.
  4. The service will show up in the service controll manager as "Apache NiFi", with a service name of "nifi-service".
  5. If you need to run service as user other than system account, you may need to set JAVA_HOME environment variable that new user can see (e.g. as a system variable).
  6. You may need to grant permissions (full access) to service run-as user to entire nifi installation folder.

Uninstallation

Uninstallation can be done in two ways:

  1. Execute the Windows service manager commands sc delete nifi-service.
  2. Run the command /bin/nifi-service.exe //DS//nifi-service

Notes

  • When NiFi starts up, it unpacks all jars. This may take some time. If you issue the stop command during this time, it may take a while for the service to stop. The apache daemon may even terminiate the process if it is taking too long, but rest assured, the shutdown has been properly initiated.

About

Apache NiFi Windows Service Wrapper

Resources

Stars

4 stars

Watchers

1 watching

Forks

Packages

 
 
 

Contributors