The cassandra utility
Starts the Cassandra Java server process.
Set the following environment variables:
- JAVA_HOME: path location of your Java Virtual Machine (JVM) installation.
- CLASSPATH: path containing all of the required Java class files (.jar).
- CASSANDRA_CONF: directory containing the Cassandra configuration files.
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.
|-f||Start the cassandra process in foreground (default is to start as a background process).|
|-p filename||Log the process ID in the named file. Useful for stopping Cassandra by killing its PID.|
|-v||Print the version and exit.|
|-Dparameter||Passes in one of the following startup parameters:
cassandra.framed cassandra.host cassandra.port=port cassandra.rpc_port =port cassandra.start_rpc =true|false cassandra.storage_port =port corrupt-sstable-root legacy-sstable-root mx4jaddress mx4jport passwd.mode passwd.properties =file
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):