4.3. Registration/Deletion to Windows Service¶
In this section registration/deletion methods of Cassandra to Windows Service are described.
Topics
4.3.1. Registration to Windows Service¶
4.3.1.1. Obtaining Apache commons daemon¶
Please download <commons-daemon-1.0.14-bin-windows.zip> from the URL below.
Note
URL (as of March, 2014)
- Apache commons daemon Project Page: http://commons.apache.org/daemon/ (English)
- Download Page: http://commons.apache.org/daemon/download_daemon.cgi (English)
- commons-daemon-1.0.14:http://archive.apache.org/dist/commons/daemon/binaries/windows/commons-daemon-1.0.14-bin-windows.zip
Please create <%CASSANDRA_HOME%/bin/daemon> folder, and expand <commons-daemon-1.0.14-bin-windows.zip> to a separate folder.Place prunsrv.exe and prunmgr.exe to <%CASSANDRA_HOME%/bin/daemon> folder.Note
Execution file of prunsrv.exe would vary depending on the CPU of the server in operation.
Please use :
- prunsrv.exe in ia64 folder in case of ia64 CPU
- prunsrv.exe in amd64 folder in case of amd64 CPU
4.3.1.2. Registration to Windows Service¶
Please execute [Command Prompt] as an Administrator, and%CASSANDRA_HOME%/bin/cassandra installrun the command above.Setting the parameters for "cassandra" Installation of "cassandra" is completewill be displayed. Registration is completed, if the following is displayed in [Local Service Display].Please change the type of startup to [Auto] or other if required.
4.3.2. Deletion from Windows Service¶
Please execute [Command Prompt] as an Administrator, and
%CASSANDRA_HOME%/bin/cassandra uninstallrun the command above.
trying to delete service if it has been created alreadywill be displayed. Deletion is completed, if [cassandra] service has been deleted from [Local Service Display].
4.3.3. How to Downgrade Apache commons daemon¶
Warning
Since Apache commons daemon 1.0.15 includes the defect by which Windows Service cannot be stopped, recommended version has been changed to 1.0.14.Descriptions below are for the customers who has already set up Windows Service utilizing Apache commons daemon 1.0.15.
Obtaining and Expanding Apache commons daemon 1.0.14
Please obtain the binary file of Apache commons daemon 1.0.14 for Windows from the URL below, and expand the zip file.
Replacing prunsrv.exe
Please obtain prunsrv.exe from the expanded zip file.Please replace prunsrv.exe which is located under bin\daemon folder under the Cassandra install folder with the one obtained as described below.It is not necessary to stop Cassandra service during the replacement process.Note
Execution file of prunsrv.exe would vary depending on the CPU of the server in operation.
Please use :
- prunsrv.exe in ia64 folder in case of ia64 CPU
- prunsrv.exe in amd64 folder in case of amd64 CPU
Operations Confirmation
While the Application Server which operates intra-mart Accel Platform is stopped, please confirm that Cassandra service in the Service List can be normally stopped and started.