Repository: nifi-minifi Updated Branches: refs/heads/master ca0fafaaa -> 03aceefce
MINIFI-418: Ship with 64 bit Windows service exe Also added docs on Windows service for 32 bit. Signed-off-by: Aldrin Piri <ald...@apache.org> Project: http://git-wip-us.apache.org/repos/asf/nifi-minifi/repo Commit: http://git-wip-us.apache.org/repos/asf/nifi-minifi/commit/03aceefc Tree: http://git-wip-us.apache.org/repos/asf/nifi-minifi/tree/03aceefc Diff: http://git-wip-us.apache.org/repos/asf/nifi-minifi/diff/03aceefc Branch: refs/heads/master Commit: 03aceefce523d3b957ee18c5fb1a595241dddc4d Parents: ca0fafa Author: Koji Kawamura <ijokaruma...@gmail.com> Authored: Wed Dec 13 23:10:36 2017 +0900 Committer: Aldrin Piri <ald...@apache.org> Committed: Thu Dec 14 08:28:15 2017 -0500 ---------------------------------------------------------------------- minifi-docs/src/main/markdown/System_Admin_Guide.md | 8 +++++--- .../minifi-framework/minifi-resources/pom.xml | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/nifi-minifi/blob/03aceefc/minifi-docs/src/main/markdown/System_Admin_Guide.md ---------------------------------------------------------------------- diff --git a/minifi-docs/src/main/markdown/System_Admin_Guide.md b/minifi-docs/src/main/markdown/System_Admin_Guide.md index d24eb65..27ecaeb 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 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 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. http://git-wip-us.apache.org/repos/asf/nifi-minifi/blob/03aceefc/minifi-nar-bundles/minifi-framework-bundle/minifi-framework/minifi-resources/pom.xml ---------------------------------------------------------------------- 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 e933ebe..f326b22 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}" /> <copy file="${java.io.tmpdir}/prunmgr.exe" tofile="${basedir}/src/main/resources/bin/minifiw.exe" /> - <copy file="${java.io.tmpdir}/prunsrv.exe" tofile="${basedir}/src/main/resources/bin/minifi.exe" /> + <copy file="${java.io.tmpdir}/amd64/prunsrv.exe" tofile="${basedir}/src/main/resources/bin/minifi.exe" /> </else> </if> </tasks>