From 8568915a8cd3c425c01226daebbb45bb8fcd744b Mon Sep 17 00:00:00 2001 From: Koji Kawamura Date: Wed, 13 Dec 2017 23:10:36 +0900 Subject: [PATCH 1/2] MINIFI-418: Added docs on Windows service for 64bit machine --- minifi-docs/src/main/markdown/System_Admin_Guide.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/minifi-docs/src/main/markdown/System_Admin_Guide.md b/minifi-docs/src/main/markdown/System_Admin_Guide.md index d24eb6502..50dbafd93 100644 --- a/minifi-docs/src/main/markdown/System_Admin_Guide.md +++ b/minifi-docs/src/main/markdown/System_Admin_Guide.md @@ -656,12 +656,14 @@ NiFi Properties Overrides: 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` -* `conf.dir` -* `nifi.minifi.config` +* `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 32 bit architecture and requires 32 bit JRE. If you prefer using 64 bit JRE, you need to replace the `minifi.exe` file with the one for 64 bit to make MiNiFi service runs successfully. To do so, go to [Commons Daemon project download page](https://commons.apache.org/proper/commons-daemon/download_daemon.cgi), 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/amd64/prunsrv.exe` into MiNiFi `bin` directory as `minifi.exe` to overwrite the 32 bit exe. + # Example Config File Below are two example config YAML files. The first tails the minifi-app.log, send the tailed log and provenance data back to a secure instance of NiFi. The second uses a series of processors to tail the app log, routes off only lines that contain "WriteAheadFlowFileRepository" and puts it as a file in the "./" directory. From 20daca2b49fa4e69def1888a2f3b7d67b7c55165 Mon Sep 17 00:00:00 2001 From: Koji Kawamura Date: Thu, 14 Dec 2017 00:33:22 +0900 Subject: [PATCH 2/2] MINIFI-418: Ship with 64 bit Windows service exe Also added docs on Windows service for 32 bit. --- minifi-docs/src/main/markdown/System_Admin_Guide.md | 2 +- .../minifi-framework/minifi-resources/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/minifi-docs/src/main/markdown/System_Admin_Guide.md b/minifi-docs/src/main/markdown/System_Admin_Guide.md index 50dbafd93..27ecaeb99 100644 --- a/minifi-docs/src/main/markdown/System_Admin_Guide.md +++ b/minifi-docs/src/main/markdown/System_Admin_Guide.md @@ -662,7 +662,7 @@ MiNiFi can run as a Windows service. To do so, you must modify the `conf/bootstr 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 32 bit architecture and requires 32 bit JRE. If you prefer using 64 bit JRE, you need to replace the `minifi.exe` file with the one for 64 bit to make MiNiFi service runs successfully. To do so, go to [Commons Daemon project download page](https://commons.apache.org/proper/commons-daemon/download_daemon.cgi), 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/amd64/prunsrv.exe` into MiNiFi `bin` directory as `minifi.exe` to overwrite the 32 bit exe. +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](https://commons.apache.org/proper/commons-daemon/download_daemon.cgi), 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. # Example Config File diff --git a/minifi-nar-bundles/minifi-framework-bundle/minifi-framework/minifi-resources/pom.xml b/minifi-nar-bundles/minifi-framework-bundle/minifi-framework/minifi-resources/pom.xml index e933ebeb8..f326b22ad 100644 --- a/minifi-nar-bundles/minifi-framework-bundle/minifi-framework/minifi-resources/pom.xml +++ b/minifi-nar-bundles/minifi-framework-bundle/minifi-framework/minifi-resources/pom.xml @@ -69,7 +69,7 @@ dest="${java.io.tmpdir}" /> - +