[
https://issues.apache.org/jira/browse/FLUME-1336?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13712555#comment-13712555
]
Sergey edited comment on FLUME-1336 at 7/18/13 5:51 PM:
--------------------------------------------------------
h3. Service Installation
I added two folders under \bin: win32 and win64. Both of them contain
corresponding version of prunsrv.exe and two PowerShell scripts for
installing/uninstalling FlumeAgent service: InstallService.ps1 and
UninstallService.ps1.
In order to install the service, open PowerShell promptand type (I assume you
have 64-bit operating system and 64-bit version of Java). You might need to
enable script execution by running
{code}Set-ExecutionPolicy RemoteSigned{code}
then type:
{code}
cd \apache-flume\bin\win64
.\InstallService.ps1
{code}
After that service will be installed, and you can start it:
{code}net start FlumeAgent{code}
In order to uninstall service, do the following:
{code}
cd \apache-flume\bin\win64
.\UninstallService.ps1
{code}
Log files (including one created by prunsrv) are stored in logs.
h3. x86 and x64 Versions
There are two versions of prunsrv for different architectures: x86 (32-bit) and
x64 (64-bit). You need to choose which one to use based on the version of Java
you have installed. I configured prunsrv to use such called JVM-mode. In that
mode prunesrv.exe loads jvm.dll from JRE and then runs that VM. If you have
32-bit version of Java, 64-bit prunsrv will not be able to load 32-bit version
of jvm.dll and service will not start.
was (Author: sirotkin):
I added two folders under \bin: win32 and win64. Both of them contain
corresponding version of prunsrv.exe and two PowerShell scripts for
installing/uninstalling FlumeAgent service: InstallService.ps1 and
UninstallService.ps1.
In order to install the service, open PowerShell promptand type (I assume you
have 64-bit operating system and 64-bit version of Java). You might need to
enable script execution by running
{code}Set-ExecutionPolicy RemoteSigned{code}
then type:
{code}
cd \apache-flume\bin\win64
.\InstallService.ps1
{code}
After that service will be installed, and you can start it:
{code}net start FlumeAgent{code}
In order to uninstall service, do the following:
{code}
cd \apache-flume\bin\win64
.\UninstallService.ps1
{code}
Log files (including one created by prunsrv) are stored in logs.
h1. x86 and x64 Versions
There are two versions of prunsrv for different architectures: x86 (32-bit) and
x64 (64-bit). You need to choose which one to use based on the version of Java
you have installed. I configured prunsrv to use such called JVM-mode. In that
mode prunesrv.exe loads jvm.dll from JRE and then runs that VM. If you have
32-bit version of Java, 64-bit prunsrv will not be able to load 32-bit version
of jvm.dll and service will not start.
> Create a Windows Service for flume (fully manageable)
> -----------------------------------------------------
>
> Key: FLUME-1336
> URL: https://issues.apache.org/jira/browse/FLUME-1336
> Project: Flume
> Issue Type: Improvement
> Reporter: Alexander Alten-Lorenz
> Assignee: Alexander Alten-Lorenz
> Attachments: FLUME-1336.patch
>
>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira