Apache Cassandra™ 2.1

Installing DataStax Community on RHEL-based systems

Install using Yum repositories on RHEL, CentOS, and Oracle Linux.

Note: To install on SUSE, use the Cassandra binary tarball distribution.

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

Prerequisites

  • Yum Package Management application installed.
  • Root or sudo access to the install machine.
  • Latest version of Oracle Java SE Runtime Environment (JRE) 7. See Installing Oracle JRE on RHEL-based Systems.
  • Python 2.6+ (needed if installing OpsCenter).

The packaged releases create a cassandra user. When starting Cassandra as a service, the service runs as this user. The following utilities are included in a separate package: sstable2json, sstablelevelreset, sstablemetadata, json2sstable, sstablerepairedset, sstablesplit, and token-generator.

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. Add the DataStax Community repository to the /etc/yum.repos.d/datastax.repo:
    [datastax] 
    name = DataStax Repo for Apache Cassandra
    baseurl = http://rpm.datastax.com/community
    enabled = 1
    gpgcheck = 0
  3. Install the packages:
    $ sudo yum install dsc21
    $ sudo yum install cassandra21-tools ## Installs optional utilities.
    The DataStax Community distribution of Cassandra is ready for configuration.

What's next

Show/hide