Install DataStax Enterprise 6.8 on RHEL-based systems using Yum
To install DataStax Enterprise (DSE) on SUSE, use the binary tarball installation.
Some things to know about installing DataStax Enterprise
-
These instructions apply to all versions of DSE 6.8. For specific changes see the DSE 6.8 release notes .
-
When installed from a package (Yum or APT), DSE runs as a service. The service initialization script is located in
/etc/init.d/dse. Run levels are not set by the package. -
This procedure installs DSE 6.8 and the DataStax Agent. It does not install OpsCenter, DataStax Studio, or DataStax Bulk Loader.
-
When connecting to DSE 6.8 from OpsCenter, use version OpsCenter 6.8; earlier versions are not supported.
|
When DSE is installed, it creates a |
Prerequisites
-
Root or sudo access.
-
Yum Package Management application.
-
Configure your operating system to use the latest version of Java 8:
-
Recommended. The latest build of a TCK (Technology Compatibility Kit) Certified OpenJDK version 8. For example, OpenJDK 8 (1.8.0_242 minimum). DataStax’s recommendation changed due to the end of public updates for Oracle JRE/JDK 8. See Oracle Java SE Support Roadmap.
-
Supported. Oracle Java SE 8 (JRE or JDK) (1.8.0_151 minimum)
-
-
RedHat-compatible distributions require EPEL (Extra Packages for Enterprise Linux).
-
Python 3.8-3.11 required for running
cqlsh.
|
Use OpsCenter Lifecycle Manager to automatically manage Java and JCE installs for DSE clusters. For more information about choosing a Java vendor, see Choosing a Java vendor in Lifecycle Manager. |
Procedure
In a terminal window:
-
Verify that a required version of Java is installed:
java -versionIf 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-b13) Java HotSpot(TM) 64-Bit Server VM (build 25.241-b13, mixed mode)If not OpenJDK 8 or Oracle Java 8, see Install the Java Virtual Machine. DataStax recommends the latest build of a Technology Compatibility Kit (TCK) Certified OpenJDK version 8.
-
Install the libaio package. For example:
sudo yum install libaio -
Add the DataStax Yum repository to a file called
/etc/yum.repos.d/datastax.repo:Set the
gpgcheck=1to perform a GPG signature check.[datastax] name={company} Repo for DSE baseurl=https://rpm.datastax.com/enterprise/ enabled=1 gpgcheck=0 -
If you have enabled signature verification (
gpgcheck=1), import the DSE repository key:sudo rpm --import https://rpm.datastax.com/rpm/repo_key -
Install the DSE packages:
Specify all packages; otherwise, the installation fails.
-
Install the latest version (6.8.x):
sudo yum install dse-full -
Install an earlier 6.8.x version:
sudo yum install dse-6.8.version_number-1 \ dse-full-6.8.version_number-1 \ dse-libgraph-6.8.version_number-1 \ dse-libcassandra-6.8.version_number-1 \ dse-libhadoop2-client-6.8.version_number-1 \ dse-libsolr-6.8.version_number-1 \ dse-libtomcat-6.8.version_number-1 \ dse-liblog4j-6.8.version_number-1 \ dse-libspark-6.8.version_number-1For example:
sudo yum install dse-6.8.0-1 \ dse-full-6.8.0-1 \ dse-libgraph-6.8.0-1 \ dse-libcassandra-6.8.0-1 \ dse-libhadoop2-client-6.8.0-1 \ dse-libsolr-6.8.0-1 \ dse-libtomcat-6.8.0-1 \ dse-liblog4j-6.8.0-1 \ dse-libspark-6.8.0-1 -
Optional: Install the demos:
Installing the DSE demos is not recommended for production. Only install the demos in development environments to run tutorials.
sudo yum install dse-demos-version_number-1
-
-
Optional: Configure systemd units in RedHat systemd configuration.
DSE is ready for additional configuration:
-
For production, be sure to change the
cassandrauser. Failing to do so is a security risk. See Adding a superuser login. -
DSE provides several types of workloads (default is transactional). See startup options for service or stand-alone installations.
-
The Next steps section provides links to related tasks and information.
Start DSE
For single-node cluster installations only:
-
Start DSE:
sudo service dse start -
Verify that DSE is running:
nodetool statusDatacenter: 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
Next steps
-
You must change or delete the
cassandrauser created on installation. See Adding a superuser login. -
Configure startup options: service or stand-alone.
-
If performing an upgrade, go to the next step in the Upgrade Guide.
-
Configuring DataStax Enterprise (DSE) - Settings for DSE Advanced Security, DSE In-Memory, DSE Advanced Replication, DSE Multi-Instance, DSE Tiered Storage, and more.
-
Changing logging locations after installation.
-
Planning and testing DataStax Enterprise (DSE) cluster deployments.
-
Configuring the heap dump directory to avoid server crashes.