error in the log file of the minifi, when trying to run install-service.bat in order to run minifi as a service
Exception in thread "main" on: .\conf\config.yml (The system cannot find the path specified)
solution:
edit bootstrap.conf and edit the config file folder as a full path (see below)
Double the \ if you are on windows !
# The location for the configuration file
# When running as a Windows service use the full path to the file
nifi.minifi.config=C:\\minifi-0.5.0\\conf\\config.yml
from the manual
https://nifi.apache.org/minifi/system-admin-guide.html
from the manual
https://nifi.apache.org/minifi/system-admin-guide.html
Running as a Windows Service
MiNiFi can run as a Windows service. To do so, you must modify the conf/bootstrap.conf to set absolute paths for some properties. The properties are:
lib.dir
(e.g.C:\\minifi-x.x.x\\lib
)conf.dir
(e.g.C:\\minifi-x.x.x\\conf
)nifi.minifi.config
(e.g.C:\\minifi-x.x.x\\conf\\config.yml
)
You can now install the MiNiFi service by running the
install-service.bat
script. To remove the service run the delete-service.bat
file.
The minifi.exe in MiNiFi
bin
directory is used to run MiNiFi Windows service. The bundled one is for 64 bit architecture and requires 64 bit JRE. If you have to use 32 bit JRE for some reason, you need to replace the minifi.exe file with the one for 32 bit to make MiNiFi service runs successfully. To do so, go to Commons Daemon project download page, download the binary (e.g. commons-daemon-1.1.0-bin.zip), extract it and replace bin/minifi.exe by copying commons-daemon-x.x.x-bin/prunsrv.exe
into MiNiFi bin
directory as minifi.exe to overwrite the 64 bit exe with the 32 bit one.