Installing DataStax Enterprise 6.8 on a single node
Use these instructions to install a single instance of DataStax Enterprise (DSE) on Linux-based platforms using a binary tarball. This single node can introduce you to DSE, which includes DSE Security, DataStax Graph, DSE Analytics, and DSE Search.
This installation is intended only for demonstration purposes. For other installations, see Which install method should I use?
These instructions apply to all versions of DataStax Enterprise 6.8. For specific changes please see the DSE 6.8 release notes.
When installed from the binary tarball, DataStax Enterprise runs as a stand-alone process.
When DSE is installed, it creates a
cassandrauser in the database and runs as this user. Do not use the
cassandrauser in production. Using the
cassandrauser is a security risk. See Adding a superuser login.
End User License Agreement (EULA). By downloading this DataStax product, you agree to the terms of the EULA.
In a terminal window:
Verify that a required version of Java is installed:
If OpenJDK, the results should look like:
openjdk version "1.8.0_242" OpenJDK Runtime Environment (build 1.8.0_242-b09) OpenJDK 64-Bit Server VM (build 25.242-b09, mixed mode)
If Oracle Java, the results should look like:
java version "1.8.0_241" Java(TM) SE Runtime Environment (build 1.8.0_241-b11) Java HotSpot(TM) 64-Bit Server VM (build 25.241-b11, mixed mode)
If not Oracle Java 8 or OpenJDK 8, see Installing supporting software on DataStax Enterprise 6.8.
Package management tools do not install Oracle Java.
Install the libaio package. For example:
sudo yum install libaio
sudo apt-get install libaio1
Use curl to download and install DSE:
Your password is retained in the shell history. To avoid this security issue, DataStax recommends using curl with the --netrc or --netrc-file option.
curl -L https://downloads.datastax.com/enterprise/dse.tar.gz | tar xz
The files are downloaded and extracted into the 6.8 directory.
Create the default data and logging 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
Start DataStax Enterprise from the installation directory:
Verify that DataStax Enterprise is running from the installation directory:
Datacenter: Cassandra ===================== Status=Up/Down |/ State=Normal/Leaving/Joining/Moving -- Address Load Tokens Owns Host ID Rack UN 127.0.0.1 82.43 KB 128 ? 40725dc8-7843-43ae-9c98-7c532b1f517e rack1
Results not using vnodes:
Datacenter: Analytics ===================== Status=Up/Down |/ State=Normal/Leaving/Joining/Moving -- Address Load Owns Host ID Token Rack UN 172.16.222.136 103.24 KB ? 3c1d0657-0990-4f78-a3c0-3e0c37fc3a06 1647352612226902707 rack1
cqlshfrom the installation directory:
For more, see Accessing data using CQL.