Installing DataStax Community on RHEL-based systems

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

Use these steps to install Cassandra 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. 


The packaged releases create a cassandra user. When starting Cassandra as a service, the service runs as this user. 


In a terminal window:

  1. Check which version of Java is installed by running the following command:
    java -version
    Use the latest version of Java 6 or 7 on all nodes.
  2. Add the DataStax Community repository to the /etc/yum.repos.d/datastax.repo:
    name = DataStax Repo for Apache Cassandra
    baseurl =
    enabled = 1
    gpgcheck = 0
  3. Install the latest package. For example:
    $ sudo yum install dsc12-1.2.10-1 cassandra12-1.2.10-1
    Note: To install prior versions of 1.2, use this format: $ sudo yum install dsc12-1.2.x-1 cassandra12-1.2.x-1.


The DataStax Community distribution of Cassandra is ready for configuration.

What's next