intra-mart Accel Platform / Cassandra Administrator Guide

Version 8 2014-04-01

«  4.2. Cassandra Setup for Windows   ::   Contents   ::   4.4. Cassandra Setup for Linux  »

4.3. Registration/Deletion to Windows Service

In this section registration/deletion methods of Cassandra to Windows Service are described.

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)

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 install
run the command above.
Setting the parameters for "cassandra"
Installation of "cassandra" is complete
will 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.
../../_images/windows-service.png

4.3.2. Deletion from Windows Service

Please execute [Command Prompt] as an Administrator, and

%CASSANDRA_HOME%/bin/cassandra uninstall

run the command above.

trying to delete service if it has been created already

will 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.
  1. 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.
  2. 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
  3. 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.

«  4.2. Cassandra Setup for Windows   ::   Contents   ::   4.4. Cassandra Setup for Linux  »