Starts the Cassandra Java server process.
Set the following environment variables:
- JAVA_HOME: path location of your Java Virtual Machine (JVM)
- CLASSPATH: path containing all of the required Java class
- CASSANDRA_CONF: directory containing the Cassandra
For convenience, on Linux, Cassandra uses an include file,
cassandra.in.sh, to source these environment variables. It
will check the following locations for this file:
- Environment setting for CASSANDRA_INCLUDE if set
Cassandra also uses the Java options set in
$CASSANDRA_CONF/cassandra-env.sh. If you want to pass
additional options to the Java virtual machine, such as maximum and minimum heap
size, edit the options in that file rather than setting JVM_OPTS
in the environment.
||Start the cassandra process in foreground (default is to start as
a background process).
||Log the process ID in the named file. Useful for stopping
Cassandra by killing its PID.
||Print the version and exit.
||Passes in one of the following startup parameters:
- The file location of the
- Log the Cassandra server process ID in the named file.
Useful for stopping Cassandra by killing its PID.
- The directory location of the
- Sets the initial partitioner token for a node the first
time the node is started.
- Set to false to start Cassandra on a node but not have
the node join the cluster.
- Set to false to clear all gossip state for the node on
restart. Use if you have changed node information in
cassandra.yaml (such as listen_address).
remove until fixed Cassandra-5916
- Set to true to reset local counter info on a node. Used
to recover from data loss to a counter table. First
remove all SSTables for counter tables on the node, then
restart the node with
then run nodetool repair once the node is up again.
- To replace a node that has died, restart a new node in
its place and use this parameter to pass in the token
that the new node is assuming. The new node must not
have any data in its data directory and the token passed
must already be a token that is part of the ring.
- For testing new compaction and compression strategies.
It allows you to experiment with different strategies
and benchmark write performance differences without
affecting the production workload. See Testing compaction and compression.
cassandra.start_rpc =< true|false>
Start Cassandra on a node and log its PID to a file:
cassandra -p ./cassandra.pid
Clear gossip state when starting a node. This is useful if the node has changed its
configuration, such as its listen IP address:
Start Cassandra on a node in stand-alone mode (do not join the cluster configured in
the cassandra.yaml file):