Installing DataStax Enterprise 5.1 on RHEL-based systems using Yum

Instructions for installing DataStax Enterprise 5.1 using Yum repositories on RHEL-based systems. Root permissions are required.

Use these instructions for installing DataStax Enterprise (DSE) 5.1 on RHEL-based systems using Yum.

To install on SUSE, use the GUI installer or the binary tarball installation.

Some things to know about installing DSE

  • The latest version of DataStax Enterprise 5.1 is 5.1.15.
  • When installed with Yum, DataStax Enterprise 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 DataStax Enterprise 5.1 and the DataStax Agent.
    It does not install OpsCenter, Studio, or Graph Loader.
    Note: The DataStax Installer has options to install developer related tools: Javadoc, DataStax Enterprise demos, DataStax Studio, and the DSE Graph Loader.
  • If using OpsCenter 6.0, override the default DataStax Agent. See compatibility of OpsCenter with DSE.
    sudo yum install dse-full datastax-agent-6.0.supported_version-1 #during installation
    sudo yum install datastax-agent-6.0.supported_version-1 #after installation
  • After installing, you must configure and start DataStax Enterprise.
Warning: When DSE is installed, it creates a cassandra user in the database and runs as this user. It also creates a cassandra user in the operating system. Do not use the cassandra user in production. Using the cassandra user is a security risk. See Adding a superuser login.
Note: For more information about managing Java, see Managing Java installs.

Prerequisites

  • Root or sudo access.
  • A supported platform.
  • Yum Package Management application.
  • Latest build of a Technology Compatibility Kit (TCK) Certified OpenJDK version 8 or Oracle Java SE Runtime Environment 8 (JRE or JDK). Earlier or later versions are not supported.
    Attention: Although Oracle JRE/JDK 8 is supported, DataStax does more extensive testing on OpenJDK 8. This change is due to the end of public updates for Oracle JRE/JDK 8. Java 9 is not supported.
  • RedHat-compatible distributions require EPEL (Extra Packages for Enterprise Linux).
  • Python 2.7.x (For older RHEL distributions, see Installing Python 2.7 on older RHEL-based package installations.)

Hardware requirements

See Recommended production settings and the DataStax Enterprise Reference Architecture white paper.

Procedure

Important: End User License Agreement (EULA). By downloading this DataStax product, you agree to the terms of the EULA.

In a terminal window:

  1. Verify that a required version of Java is installed:
    java -version
    Note: DataStax recommends the latest build of a Technology Compatibility Kit (TCK) Certified OpenJDK version 8.

    If not OpenJDK 8 or Oracle Java 8, see Installing supporting software.

    Important:
    • Although Oracle JRE/JDK 8 is supported, DataStax does more extensive testing on OpenJDK 8 starting with DSE 5.1.11. This change is due to the end of public updates for Oracle JRE/JDK 8. Java 9 is not supported.
    • Package management tools do not install OpenJDK 8 or Oracle Java.
  2. Add the DataStax Yum repository to a file called /etc/yum.repos.d/datastax.repo:
    Note: Set the gpgcheck=1 to perform a GPG signature check.
    [datastax] 
    name = DataStax Repo for DataStax Enterprise
    baseurl=https://rpm.datastax.com/enterprise
    enabled=1
    gpgcheck=0
  3. If you have enabled signature verification (gpgcheck=1), import the DataStax Enterprise repository key:
    sudo rpm --import https://rpm.datastax.com/rpm/repo_key 
  4. Install the full DSE package:
    • Install the latest 5.1.x version:
      sudo yum install dse-full-5.1.15-1
    • Install an earlier 5.1.x version:
      sudo yum install dse-full-version_number-1
      Note: To view the available versions, see the Release notes.
      For example:
      sudo yum install dse-full-5.1.9
    • Optional: Install the demos:
      Attention: Installing the DSE demos is not recommended for production. Only install the demos in development environments to run tutorials.
      sudo yum install dse-demos

    DataStax Enterprise is ready for additional configuration.

  5. Optional: Single-node cluster installations only:
    1. If DataStax Enterprise is not already running:
      sudo service dse start

      For more start options, see Starting DataStax Enterprise as a service.

    2. Verify that DataStax Enterprise is running:
      nodetool status
      Results using vnodes:
      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
  6. If your OpsCenter version is not compatible with DSE 5.1, upgrade OpsCenter to a compatible version.

What's next

cassandra.yaml

The location of the cassandra.yaml file depends on the type of installation:

Package installations
Installer-Services installations

/etc/dse/cassandra/cassandra.yaml

Tarball installations
Installer-No Services installations

installation_location/resources/cassandra/conf/cassandra.yaml

dse.yaml

The location of the dse.yaml file depends on the type of installation:

Package installations
Installer-Services installations

/etc/dse/dse.yaml

Tarball installations
Installer-No Services installations

installation_location/resources/dse/conf/dse.yaml