Database Reference
In-Depth Information
to “roll their own” distribution, a binary tarball is also available from the
Apachewebsite.MostmodernUnix-like operating systemsshouldbeableto
use this tarball directly, assuming Java has been properly installed.
For Cassandra, an appropriate version of Java means Java 7 or higher.
Trying tostartCassandra withanolderJava 6installation, whichisstillvery
common, results in errors like this:
$ java -version
java version "1.6.0_65"
Java(TM) SE Runtime Environment (build
1.6.0_65-b14-462-11M4609)
$ ./bin/cassandra -f
xss = -ea -javaagent:./bin/../lib/jamm-0.2.5.jar
-XX:+UseThreadPriorities
-XX:ThreadPriorityPolicy=42
-Xms1024M -Xmx1024M
-Xmn256M -XX:+HeapDumpOnOutOfMemoryError -Xss256k
Exception in thread "main"
java.lang.UnsupportedClassVersionError
org/apache/cassandra/service/CassandraDaemon :
Unsupported major.minor version 51.0
A major version of 51 refers to Java 7 (Java 6 is 50; Java 8 is 52). After Java
7 or higher is installed, Cassandra can be started with either cassandra or
cassandra -f , which runs the server in the foreground.
Configuration Options
Most configuration options for Cassandra 2.0 are reasonable “out of the
box,” but there are a few that are often changed to conform to a particular
installation. These options can be found in conf/ directory. The
cassandra.yaml specifies the cluster name, which defaults to “Test
Cluster”:
# The name of the cluster. This is mainly used to
prevent machines in
# one logical cluster from joining another.
cluster_name: 'Test Cluster'
Search WWH ::




Custom Search