Database Reference
In-Depth Information
Installing Cassandra
Cassandra requires the most stable version of Java 1.6 that you can deploy, preferably the
Oracle or Sun JVM. Perform the following steps to install Cassandra:
1. Download the most recent stable release (version 1.1.6 at the time of writing) from
the Apache Cassandra site.
2. Create a Cassandra directory under /usr/local as follows:
sudo mkdir /usr/local/cassandra
3. Extract the downloaded TAR file to the /usr/local location. Use the following
command:
sudo tar -xvf apache-cassandra-1.1.6-bin.tar.gz -C
/usr/local/cassandra
4. Cassandra needs a directory to store its data, log files, and cache files. Create
/usr/local/cassandra/tmp to store this data:
sudo mkdir -p /usr/local/cassandra/tmp
5. Update the Cassandra.yaml configuration file under /usr/local/Cas-
sandra/apache-cassandra-1.1.6/conf .
The following properties will go into it:
cluster_name: 'MyClusterName'
seeds: <IP of Node-1><IP of Node-2>(IP address of each
node go into it)
listen_address: <IP of Current Node>
6. Calculate a token for each node using the following script and update the ini-
tial_token property to each node by adding a unique token value in Cas-
sandra.yaml :
#! /usr/bin/python
import sys
if (len(sys.argv) > 1):
num=int(sys.argv[1])
else:
Search WWH ::




Custom Search