Installing DataStax Enterprise on any Linux-based platform or Mac OS X
- Latest version of Oracle Java SE Runtime Environment (JRE) 6 or 7. See Installing the Oracle JRE.
- Java Native Access (JNA) is required for production installations. See Installing the JNA.
Also see Recommended production settings.
The binary tarball runs as a stand-alone process.
These steps install DataStax Enterprise. After installing, you must configure and start DataStax Enterprise.
In a terminal window:
Check which version of Java is installed:
$ java -versionUse the latest version of Oracle Java 6 or 7 on all nodes.
Download the DataStax Enterprise and OpsCenter (optional) tarballs:
$ curl -L http://username:email@example.com/enterprise/dse.tar.gz | tar xz $ curl -L http://downloads.datastax.com/community/opscenter.tar.gz | tar xzwhere username and password are the DataStax account credentials from your registration confirmation email.
The files are downloaded and extracted into the dse-3.2.x directory.
When DataStax Enterprise is started, it installs files into the
/var/log/cassandra directories. If you do not have root
access to the default directories, ensure that you have write access:
$ 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:
$ mkdir install_location/dse-data $ cd dse-data $ mkdir commitlog $ mkdir saved_caches
Go the directory containing the cassandra.yaml file:
$ cd install_location/resources/cassandra/conf
Edit the following lines in the cassandra.yaml
data_file_directories: install_location/dse-data commitlog_directory: install_location/dse-data/commitlog saved_caches_directory: install_location/dse-data/saved_caches
- Make the directories for data and logging directories:
Comment out the following option from the
DataStax Enterprise is ready for configuration.