Apache Cassandra 0.7 Documentation

Packaged Releases

Packaged releases of Cassandra are available for each stable release. Both rpm and dpkg packages are currently supported through the yum and apt package management tools.

Due to licensing restrictions, the packaged releases use OpenJDK instead of Sun JDK. After you install a packaged release, DataStax recommends installing the most recently released version of the Sun JVM. Versions earlier than 1.6.0_19 are specifically not recommended.

It is also recommended to install JNA, as described in the Getting Started Tutorial.

RPMs

A YUM RPM repository with packaged cassandra releases is available at http://rpm.datastax.com.

The following will add the Riptano repository to your repository list:

wget http://rpm.datastax.com/EL/6/x86_64/riptano-release-5-1.el6.noarch.rpm
rpm -i riptano-release-5-1.el6.noarch.rpm

You can then install Cassandra:

yum install apache-cassandra

The cassandra package creates a cassandra user and places an init script in /etc/init.d/cassandra. Run levels are not set by the package.

The RPM will place configuration files for Storage Configuration, Authentication and Authorization and Logging Options in /etc/cassandra. Environment Settings are in /usr/share/cassandra.

Debian Packages

Packages to install on Debian or Debian derivatives (such as Ubuntu) are made available by the Apache Software Foundation.

To add the Cassandra package directories to your list of sources, add the following lines to /etc/apt/sources.list:

deb http://www.apache.org/dist/cassandra/debian unstable main
deb-src http://www.apache.org/dist/cassandra/debian unstable main

Before you can use the repository, you need to add the key to your list of keys:

wget http://www.apache.org/dist/cassandra/KEYS -O- | sudo apt-key add -

Then run:

sudo apt-get update

Once imported, you can install Cassandra as you would any other package:

sudo apt-get install cassandra

The configuration files for Storage Configuration, Authentication and Authorization, and Logging Options can be found in /etc/cassandra. The Environment Settings are in /etc/default/cassandra.