Database Reference
In-Depth Information
From Binaries
Download the .tar archive:
Click here to view code image
curl -OL http://downloads.datastax.com/community/
dsc.tar.gz
Unpack the .tar archive for DataStax Community:
tar -xzvf dsc.tar.gz
Go to the install directory:
cd dsc-cassandra-1.2.x
Start DataStax Community from the install directory:
sudo bin/cassandra
Configuration
The Cassandra configuration files, by default, are kept in the conf directory in the
application path, or if you install via the .deb or .rpm packages, they will be in the
/etc/cassandra directory.
The cassandra.yaml file contains most of the configuration items required to
successfully set up a Cassandra cluster. The following list describes each of the
most important options in the cassandra.yaml file and their defaults:
cluster_name
Default: “Test Cluster.” The name of this cluster. The name of the cluster
determines which cluster a node will belong to and prevents the node
from joining an unwanted cluster by mistake.
num_tokens
Default: 256. The number of tokens randomly assigned to this node.
When virtual nodes (vnodes) are used, this tells Cassandra how much
data, in proportion to the cluster, this node owns. Given a three-node
cluster, if one node has ten tokens and the other two have five tokens, the
node with ten tokens will own 50% of the data in the entire cluster. One
Search WWH ::




Custom Search