Apache Cassandra 1.1 Documentation

Starting and Stopping a Cassandra Cluster

This document corresponds to an earlier product version. Make sure you are using the version that corresponds to your version.

Latest Cassandra documentation | Earlier Cassandra documentation

On initial start-up, each node must be started one at a time, starting with your seed nodes.

Starting Cassandra as a Stand-Alone Process

Start the Cassandra Java server process starting with the seed nodes:

$ cd <install_location>
$ bin/cassandra

-f starts Cassandra in the foreground.

Starting Cassandra as a Service

Packaged installations provide startup scripts in /etc/init.d for starting Cassandra as a service. The service runs as the cassandra user.

To start the Cassandra service, you must have root or sudo permissions:

$ sudo service cassandra start

Note

On Enterprise Linux systems, the Cassandra service runs as a java process. On Debian systems, the Cassandra service runs as a jsvc process.

Stopping Cassandra as a Stand-Alone Process

To stop the Cassandra process, find the Cassandra Java process ID (PID), and then kill the process using its PID number:

$ ps auwx | grep cassandra
$ sudo kill <pid>

Stopping Cassandra as a Service

To stop the Cassandra service, you must have root or sudo permissions:

$ sudo service cassandra stop