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.
- Yum Package Management application installed.
- Root or sudo access to the install machine.
- Latest version of Oracle Java SE Runtime Environment (JRE) 8 (recommended) or OpenJDK 7.
- Python 2.6+ (needed if installing OpsCenter).
- Java Native Access (JNA) is required for production installations (latest version recommended). See Installing the JNA on RHEL or CentOS Systems.
The packaged releases create a cassandra user. When starting Cassandra as a service, the service runs as this user.¶
In a terminal window:
Check which version of Java is installed by running the following
$ java -versionIt is recommended to use the latest version of Oracle Java 8 on all nodes. (Oracle Java 7 is also supported.)
Add the DataStax Community repository to the
[datastax] name = DataStax Repo for Apache Cassandra baseurl = http://rpm.datastax.com/community enabled = 1 gpgcheck = 0
Install the packages:
$ sudo yum install dsc20-2.0.x-1 cassandra2.0.x-1For example, to install DataStax Community 2.0.11:
$ sudo yum install dsc20-2.0.11-1 cassandra20-2.0.11-1The DataStax Community distribution of Cassandra is ready for configuration.