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.
- Ensure that your platform is supported. See DataStax Community – Supported Platforms
- 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
7. 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.
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 or OpenJDK 8 on all nodes.
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 dsc30 $ sudo yum install cassandra30-tools ## Installs optional utilities.Note: The optional utilities are sstablelevelreset, sstablemetadata, sstableofflinerelevel, sstablerepairedset, sstablesplit, token-generator. Each utility provides usage/help information; type help after entering the command.
The DataStax Community distribution of Cassandra is ready for configuration.
- Configure DataStax Community
- Initializing a multiple node cluster (single data center)
- Initializing a multiple node cluster (multiple data centers)
- Recommended production settings for Linux
- Installing OpsCenter
- Key components for configuring Cassandra
- Starting Cassandra as a service
- Package installation directories