Installing DataStax Enterprise using the binary tarball
Install DataStax Enterprise on any Linux-based platform, including 32-bit platforms.
For a complete list of supported platforms, see DataStax Enterprise Supported Platforms.
- All Linux platforms:
- Debian/Ubuntu distributions:
- If you are using Ubuntu 10.04 LTS, you must update to JNA 3.4, as described in Installing the JNA on Debian or Ubuntu systems.
- RedHat-compatible distributions:
- If installing on a 64-bit Oracle Linux distribution, first install the 32-bit versions of glibc libraries.
- If you are using an older RHEL-based Linux distribution, such as CentOS-5, you may need to replace the Snappy compression/decompression library; see the DataStax Enterprise 4.5.0 Release Notes.
- Before installing, make sure EPEL (Extra Packages for Enterprise Linux) is installed. See Installing EPEL on RHEL OS 5.x.
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 -version
If not Oracle Java 7, see Installing the Oracle JRE.Important: Package management tools do not install Oracle Java.
- Download the tarball from the Download DataStax Enterprise page.
Unpack the distribution:
$ tar -xzvf dse-4.5.x.tar.gz
If you do not have root access to the default directories locations, you can
define your own directory locations as described in the following steps or
change the ownership of the directories:
$ 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 $ sudo mkdir -p /var/lib/spark; sudo chown -R $USER: $GROUP /var/lib/spark $ sudo mkdir -p /var/log/spark; sudo chown -R $USER: $GROUP /var/log/spark
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:
If you do not want to use the default Spark directories, you can define your
own directory locations:
- Make the directories for the Spark lib and log directories.
Go the directory containing the spark-env.sh
- Installer-Services and Package installations: /etc/dse/spark/spark-env.sh
- Installer-No Services and Tarball installations: install_location/resources/spark/conf/spark-env.sh
- Edit the spark-env.sh file to match the locations of your Spark lib and log directories, as described in Spark configuration.
DataStax Enterprise is ready for configuration.