/nifi-windowsservice

Apache NiFi Windows Service Wrapper

Primary LanguageJava

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).

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".

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.