Apache Cassandra™ 2.0

Installing DataStax Community on any Linux-based platform

Install on all Linux-based platforms using a binary tarball.

Use this install for Mac OS X and platforms without package support, or if you do not have or want a root installation.

For a complete list of supported platforms, see DataStax Community – Supported Platforms.

Prerequisites

Note: If you are using Ubuntu 10.04 LTS, you must update to JNA 3.4, as described in Installing the JNA using the binary tarball.

The binary tarball runs as a stand-alone process.

Procedure

In a terminal window:

  1. Check which version of Java is installed by running the following command:
    $ java -version
    Use the latest version of Oracle Java 7 on all nodes.
  2. Download the DataStax Community:
    $ curl -L http://downloads.datastax.com/community/dsc.tar.gz | tar xz
    You can also download from Planet Cassandra.
  3. Go to the install directory:
    $ cd dsc-cassandra-2.0.x
  4. By default, Cassandra installs files into the /var/lib/cassandra and /var/log/cassandra directories. If you do not have root access to the default directories, ensure you have write access:
    $ sudo mkdir /var/lib/cassandra
    $ sudo mkdir /var/log/cassandra
    $ sudo chown -R  $USER: $GROUP /var/lib/cassandra
    $ sudo chown -R  $USER: $GROUP /var/log/cassandra

Results

The DataStax Community distribution of Cassandra is installed and ready for configuration.