Apache Cassandra 1.1 Documentation

Installing the DataStax Community Binaries on Linux or Mac as Root

The quickest way to get going on a single node with Cassandra is to install the DataStax Community Edition binary tarball packages using root permissions (or sudo). This installation also creates files and directories in /var/lib/cassandra and /var/log/cassandra. If you need to install everything in a single location, such as your home directory, and without root permissions, see Installing the DataStax Community Binaries on Linux or Mac as User.


The instructions in this section are intended for a quick start tutorial, not for production installations. See Planning a Cassandra Cluster Deployment, Installing a Cassandra Cluster, and Initializing a Multiple Node Cluster in a Single Data Center for production cluster setup best practices.


Cassandra is a Java program and requires that a Java Virtual Machine (JVM) is installed before starting the server. For production deployments, you will need the Oracle Java Runtime Environment 1.6.0_19 or later, but if you are installing only an evaluation instance, any JVM is fine.

To check for Java, run the following command in a terminal window:

$ java -version

If you do not have Java installed, see Installing Oracle JRE for instructions.

Steps to Install Cassandra


By downloading community software from DataStax you agree to the terms of the DataStax Community EULA (End User License Agreement) posted on the DataStax website.

  1. Download the Cassandra package (required), and the optional OpsCenter:

    To get the latest versions of DataStax and OpsCenter Community Editions and the Portfolio Demo:

    $ curl -OL http://downloads.datastax.com/community/dsc.tar.gz
    $ curl -OL http://downloads.datastax.com/community/opscenter.tar.gz
  2. Unpack the distributions:

    $ tar -xzvf dsc.tar.gz
    $ tar -xzvf opscenter.tar.gz
    $ rm *.tar.gz
  3. Start the Cassandra server in the background from the directory where the package was installed. For example, if dsc-cassandra-1.1.0 is installed in your home directory:

    $ cd ~/dsc-cassandra-1.1.0
    $ sudo bin/cassandra


    When Cassandra loads, you may notice a message that MX4J will not load and that mx4j-tools.jar is not in the classpath. You can ignore this message. MX4j provides an HTML and HTTP interface to JMX and is not necessary to run Cassandra. DataStax recommends using OpsCenter. It has more monitoring capabilities than MX4J.

  4. Check that Cassandra is running by invoking the nodetool utility from the installation home directory:

    bin/nodetool ring –h localhost


Next Steps