DataStax provides yum repositories for CentOS and RedHat Enterprise. For a complete list of supported platforms, see DataStax Community – Supported Platforms.
Note
By downloading community software from DataStax you agree to the terms of the DataStax Community EULA (End User License Agreement) posted on the DataStax web site.
Before installing Cassandra make sure the following prerequisites are met:
The packaged releases create a cassandra user. When starting Cassandra as a service, the service runs as this user.
java -versionDataStax recommends using the most recently released version of Oracle Java SE Runtime Environment (JRE) 6 on all DSE nodes. Versions earlier than 1.6.0_19 should not be used. Java 7 is not recommended. If you need help installing Java, see Installing the JRE on RHEL or CentOS Systems.
(RHEL 5.x/CentOS 5.x only) Make sure you have EPEL (Extra Packages for Enterprise Linux) installed. EPEL contains dependent packages required by DSE, such as jna and jpackage-utils. For both 32- and 64-bit systems:
$ sudo rpm -Uvh http://dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm
Add a yum repository specification for the DataStax repository in /etc/yum.repos.d. For example:
$ sudo vi /etc/yum.repos.d/datastax.repo
In this file add the following lines for the DataStax repository:
[datastax]
name= DataStax Repo for Apache Cassandra
baseurl=http://rpm.datastax.com/community
enabled=1
gpgcheck=0
Install the package using yum.
$ sudo yum install dsc-1.0.10
This installs the DataStax Community distribution of Cassandra, DataStax Community demos, and the OpsCenter Community Edition.