Installing the Apache Cassandra 3.0 on RHEL-based systems

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

Attention: OpsCenter is not supported or installed with Cassandra 2.2 and later.

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.

Before you begin

  • Ensure that your platform is supported.
  • Yum Package Management application installed.
  • Root or sudo access to the install machine.
  • Latest version of Oracle Java Platform, Standard Edition 8 (JDK) or OpenJDK 8.
    Note: The JDK is recommended for development and production systems. It provides tools that are not in the JRE, such as jstack, jmap, jps, and jstat, that are useful for troubleshooting.
  • Python 2.7.

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
    It is recommended to use the latest version of Oracle Java 8 or OpenJDK 8 on all nodes.
  2. Add the Apache Cassandra 3.0 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 latest packages:
    $ sudo yum install dsc30
    $ sudo yum install cassandra30-tools ## Installs optional utilities.

    This command installs the latest version of Cassandra 3.0.x. To install earlier versions, see Installing earlier releases of Cassandra.

  4. Optional: Single-node cluster installations only.
    1. Start Cassandra:
      $ sudo service cassandra start
      Note: On some Linux distributions, you many need to use:
      $ sudo /etc/init.d/cassandra start
    2. Verify that DataStax Distribution of Apache Cassandra is running:
      $ nodetool status
      Datacenter: datacenter1
      =======================
      Status=Up/Down
      |/ State=Normal/Leaving/Joining/Moving
      --  Address             Load       Tokens  Owns    Host ID                               Rack
      UN  127.0.0.147.66 KB   47.66 KB   256     100%    aaa1b7c1-6049-4a08-ad3e-3697a0e30e10  rack1

What to do next