Installing DataStax Enterprise 5.0 on Debian-based systems using APT

Instructions for installing DataStax Enterprise 5.0 using APT repositories on Debian-based systems. Root permissions are required.

Use these instructions for installing DataStax Enterprise on Debian-based systems using APT. Root permissions are required. To install earlier versions, see Installing DataStax Enterprise 5.0.x patch releases.

When installed from APT, DataStax Enterprise runs as a service.

Important: DataStax Enterprise 5.0 uses Apache Cassandra 3.0 and CQL 3.3.

Prerequisites

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

Hardware requirements
Requirement Minimum Production
CPUs 2 16
Memory 8 GB 24 GB
Data directory 20 GB 200 GB
Commit log directory 20 GB 200 GB
Saved caches directory 20 GB 200 GB
Logs directory 20 GB 200 GB
Production requirements depend on the volume of data and workload.

The packaged releases create a cassandra user. When starting DataStax Enterprise as a service, the Cassandra and Hadoop tracker services run as this user. The service initialization script is located in /etc/init.d/dse. Run levels are not set by the package.

Note: The latest version of DataStax Enterprise 5.0.x is 5.0.15.

Procedure

These steps install DataStax Enterprise. They do not install OpsCenter, DataStax Studio, DataStax Agent, or DevCenter. After installing, you must configure and start DataStax Enterprise.

Important: End User License Agreement (EULA). By downloading DataStax products, you confirm that you agree to the processing of information as described in the DataStax website privacy policy and agree to the website terms of use.

In a terminal window:

  1. Verify that a required version of Java is installed:
    java -version

    If not Oracle Java 8, or OpenJDK, see Installing the JDK.

    Important: Package management tools do not install Oracle Java.
  2. Add a DataStax repository file called /etc/apt/sources.list.d/datastax.sources.list:
    $ echo "deb https://debian.datastax.com/enterprise stable main" | sudo tee -a /etc/apt/sources.list.d/datastax.sources.list
  3. Add the DataStax repository key:
    curl -L https://debian.datastax.com/debian/repo_key | sudo apt-key add -
  4. Install the package:
    1. Update apt-get:
      sudo apt-get update
    2. Install the latest version:
      Install the 5.0.15 version of DSE:
      Attention: Be sure to specify all the packages; otherwise, the installation might fail.
      sudo apt-get install \
        dse-full=5.0.15-1 \
        dse=55.0.15-1 \
        dse-hive=5.0.15-1 \
        dse-pig=5.0.15-1 \
        dse-libsolr=5.0.15-1 \
        dse-libtomcat=5.0.15-1 \
        dse-libsqoop=5.0.15-1 \
        dse-liblog4j=5.0.15-1 \
        dse-libmahout=5.0.15-1\
        dse-libhadoop-native=5.0.15-1 \
        dse-libcassandra=5.0.15-1 \
        dse-libhive=5.0.15-1 \
        dse-libpig=5.0.15-1 \
        dse-libhadoop=5.0.15-1 \
        dse-libspark=5.0.15-1 \
        dse-libgraph=5.0.15-1 \
        dse-libhadoop2-client=5.0.15-1 \
        dse-libhadoop2-client-native=5.0.15-1
      Note: To install earlier versions, replace the version number in the previous command. For example:
      sudo apt-get install \
        dse-full=5.0.10-1 \
        dse=5.0.10-1 \
        dse-hive=5.0.10-1 \
        dse-pig=5.0.10-1 \
        dse-libsolr=5.0.10-1 \
        dse-libtomcat=5.0.10-1 \
        dse-libsqoop=5.0.10-1 \
        dse-liblog4j=5.0.10-1 \
        dse-libmahout=5.0.10-1 \
        dse-libhadoop-native=5.0.10-1 \
        dse-libcassandra=5.0.10-1 \
        dse-libhive=5.0.10-1 \
        dse-libpig=5.0.10-1 \
        dse-libhadoop=5.0.10-1 \
        dse-libspark=5.0.10-1 \
        dse-libgraph=5.0.10-1 \
        dse-libhadoop2-client=5.0.10-1 \
        dse-libhadoop2-client-native=5.0.10-1
      To view the available versions, see the Release Notes.

      The DataStax Installer has options to install developer related tools: Javadoc, DataStax Enterprise demos, DataStax Studio, and the DSE Graph Loader.

      Install the DSE demos:

      sudo apt-get install dse-demos=5.0.15
      Attention: Installing the DSE demos is not recommended for production. Only install the demos in development environments to run tutorials.

    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
      Note: For other start options, see Starting DataStax Enterprise as a service.
    2. Verify that DataStax Enterprise is running:
      Using vnodes:
      nodetool status
      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
      Not using vnodes:
      nodetool status
      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

What's next

The location of the cassandra.yaml file depends on the type of installation:
Installer-Services /etc/dse/cassandra/cassandra.yaml
Package installations /etc/dse/cassandra/cassandra.yaml
Installer-No Services install_location/resources/cassandra/conf/cassandra.yaml
Tarball installations install_location/resources/cassandra/conf/cassandra.yaml
The location of the dse.yaml file depends on the type of installation:
Installer-Services /etc/dse/dse.yaml
Package installations /etc/dse/dse.yaml
Installer-No Services install_location/resources/dse/conf/dse.yaml
Tarball installations install_location/resources/dse/conf/dse.yaml