Installing DataStax Enterprise 5.1 on Debian-based systems using APT

Learn how to install DataStax Enterprise 5.1 on Debian-based systems using APT.

Some things to know about installing DSE

  • When installed with APT, 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.

  • If using OpCenter 6.0, override the default DataStax Agent. However, OpsCenter 6.8 is recommended. See DSE product compatibility. After installation:

    sudo apt-get install datastax-agent-6.0.supported_version-1

    To install the agent during installation, add datastax-agent-6.0.supported_version-1 to the installation command in 5.

SECURITY RISK

When DSE is installed, it creates a superuser called cassandra in the database and runs as this user. It also creates this same superuser in the operating system. Do not use the cassandra superuser in production. Using the cassandra superuser is a security risk. See Adding a superuser login.

For more information about managing Java, see Managing Java installs.

Prerequisites

Install DSE on Debian-based systems using APT

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

    java -version

    DataStax recommends the latest build of a Technology Compatibility Kit (TCK) Certified OpenJDK version 8.

    If OpenJDK, the results should look like:

    openjdk version "1.8.0_171"
    OpenJDK Runtime Environment (build 1.8.0_171-8u171-b11-0ubuntu0.16.04.1-b11)
    OpenJDK 64-Bit Server VM (build 25.171-b11, mixed mode)

    If Oracle Java, the results should look like:

    java version "1.8.0_181"
    Java(TM) SE Runtime Environment (build 1.8.0_181-b13)
    Java HotSpot(TM) 64-Bit Server VM (build 25.181-b13, mixed mode)

    If not OpenJDK 8 or Oracle Java 8, see Install the Java Virtual Machine.

  2. Download the DSE DEB package from Fix Central:

    1. Sign in to Fix Central.

    2. In the Product selector field, enter IBM DataStax Enterprise.

    3. Select the DataStax Enterprise version you want to install from the Select from IBM DataStax Enterprise list.

    4. Select All in the Platform list, and then click Continue.

    5. On the Identify fixes page, click Continue to use the default Browse for fixes option.

    6. Select the fix pack (DataStax Enterprise version) you want to install, and then click Continue.

    7. Review the terms and conditions, and then click I agree.

  3. Click the DSE DEB package link to download the file, for example, dse-5.1.48-deb.zip.

  4. Extract the DEB files from the .zip file:

    sudo unzip dse-5.1.48-deb.zip

    You can use the package signing public key (dse-deb-signing.pub.key) in the file to set up and verify the DEB packages.

  5. Set up a local APT repository to host the downloaded DSE Debian package.

    For more information, see Setting up a Debian repository.

  6. Add a DataStax repository file called /etc/apt/sources.list.d/datastax.sources.list:

    echo "deb [trusted=yes] file:**REPOSITORY_DIRECTORY** ./" | sudo tee -a /etc/apt/sources.list.d/datastax.sources.list

    Replace REPOSITORY_DIRECTORY with the path to the repository directory.

    The [trusted=yes] option allows APT to use the repository without GPG key verification.

  7. Update the packages:

    sudo apt-get update
  8. Install the DSE packages:

    Specify all packages; otherwise, the installation fails.

    • Install the latest version of DSE (5.1.x):

      sudo apt-get install dse-full
    • Install an earlier version of DSE 5.1.x:

      sudo apt-get install dse=version_number-1 \
          dse-full=version_number-1 \
          dse-libcassandra=version_number-1 \
          dse-libgraph=version_number-1 \
          dse-libhadoop2-client-native=version_number-1 \
          dse-libhadoop2-client=version_number-1 \
          dse-liblog4j=version_number-1 \
          dse-libsolr=version_number-1 \
          dse-libspark=version_number-1 \
          dse-libtomcat=version_number-1

      For example:

      Specify all packages; otherwise, the installation fails.

      sudo apt-get install dse=5.1.48-1 \
          dse-full=5.1.48-1 \
          dse-libcassandra=5.1.48-1 \
          dse-libgraph=5.1.48-1 \
          dse-libhadoop2-client-native=5.1.48-1 \
          dse-libhadoop2-client=5.1.48-1 \
          dse-liblog4j=5.1.48-1 \
          dse-libsolr=5.1.48-1 \
          dse-libspark=5.1.48-1 \
          dse-libtomcat=5.1.48-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 apt-get install dse-demos=version_number-1

      Result

      DSE is ready for additional configuration:

      • For production, be sure to change the cassandra user. 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.

      • Next Steps below provides links to related tasks and information.

  1. Single-node cluster installations only:

    1. Start DSE:

      sudo service dse start
    2. Verify that DSE is running:

      nodetool status

      Review the output to verify that DSE is running:

      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

Next steps

Was this helpful?

Give Feedback

How can we improve the documentation?

© Copyright IBM Corporation 2025 | Privacy policy | Terms of use Manage Privacy Choices

Apache, Apache Cassandra, Cassandra, Apache Tomcat, Tomcat, Apache Lucene, Apache Solr, Apache Hadoop, Hadoop, Apache Pulsar, Pulsar, Apache Spark, Spark, Apache TinkerPop, TinkerPop, Apache Kafka and Kafka are either registered trademarks or trademarks of the Apache Software Foundation or its subsidiaries in Canada, the United States and/or other countries. Kubernetes is the registered trademark of the Linux Foundation.

General Inquiries: Contact IBM