DataStax provides a binary tarball distribution for installing on platforms that do not have package support, such as Mac, or if you do not have or want to do a root installation. For a complete list of supported platforms, see DataStax Enterprise Supported Platforms.
Before installing DataStax Enterprise make sure you have met the following prerequisites:
Oracle Java SE Runtime Environment (JRE) 6. Java 7 is not recommended.
Java Native Access (JNA) is required for production installations. See Installing JNA.
If you are using Ubuntu 10.04 LTS, you need to update to JNA 3.4, as described in Install JNA on Ubuntu 10.04.
Your DataStax username and password (provided in your DataStax registration confirmation email). If you do not have a DataStax username and password, register before attempting to download the software.
To install DataStax Enterprise and OpsCenter:
Check which version of Java is installed by running the following command in a terminal window:
# java -version
DataStax 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 Oracle JRE.
Download the distribution to a location on your machine:
$ curl -OL http://<username>:<password>@downloads.datastax.com/enterprise/dse.tar.gz $ curl -OL http://<username>:<password>@downloads.datastax.com/enterprise/opscenter.tar.gz
where <username> and <password> are the DataStax account credentials from your registration confirmation email.
Unpack the distributions:
$ tar -xzvf dse.tar.gz $ tar -xzvf opscenter.tar.gz $ rm *.tar.gz
By default, DataStax Enterprise is configured to use /var/lib/cassandra and /var/log/cassandra directories.
If you do not have root access to the default directories, ensure you have write access as follows:
$ sudo mkdir -p /var/lib/cassandra; sudo chown -R $USER:$GROUP /var/lib/cassandra $ sudo mkdir -p /var/log/cassandra; sudo chown -R $USER:$GROUP /var/log/cassandra
(Optional) If you do not want to use the default data and logging directories, you can define your own directory locations:
Make the directories for data and logging directories. For example:
$ mkdir <install_location>dse-data $ cd dse-data $ mkdir commitlog $ mkdir saved_caches
Go the directory containing the cassandra.yaml file. For example:
$ cd <install_location>/resources/cassandra/conf
Edit the following lines in the cassandra.yaml file. For example:
data_file_directories: <install_location>/dse-data commitlog_directory: <install_location>/dse-data/commitlog saved_caches_directory: <install_location>/dse-data/saved_caches