Installing DataStax Enterprise 6.0 on Debian-based systems using APT

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

Use these instructions for installing DataStax Enterprise (DSE) 6.0 on Debian-based systems using APT.

Some things to know about installing DSE

  • The latest version of DataStax Enterprise 6.0 is 6.0.6.
  • When installed from a package (Yum or 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 DSE 6.0 and the DataStax Agent. It does not install OpsCenter, DataStax Studio, Graph Loader, or DataStax Bulk Loader.
  • When connecting to DSE 6.0 from OpsCenter, use version OpsCenter 6.5; earlier versions are not supported. See DataStax OpsCenter compatibility with DSE.
Warning: When DSE is installed, it creates a cassandra user in the database. Do not use the cassandra user in production. Failing to do so is a security risk. See Adding a superuser login.


  • Root or sudo access.
  • A supported platform.
  • Your DataStax Academy registration email address and Downloads Key or Profile Name and password.
  • Aptitude Package Management (APT) application.
  • Configure your operating system to use the latest version of Java 8:
  • Python 2.7.x
Table 1. 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
Also see Recommended production settings and the DataStax Enterprise Reference Architecture white paper.


In a terminal window:

  1. Verify that a required version of Java is installed:
    java -version
    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 Installing supporting software on DataStax Enterprise 6.0.

  2. Install the libaio package. For example:
    sudo apt-get install libaio1
  3. Add a DataStax repository file called /etc/apt/sources.list.d/datastax.sources.list:
    echo "deb stable main" | sudo tee -a /etc/apt/sources.list.d/datastax.sources.list

    where DSA_email_address and downloads_key are your DataStax Academy email address and My Downloads Key. Depending on your environment, you might need to replace @ in your email address with %40 and escape any character in your password that is used in your operating system's command line. Examples: \! and \|.

    For backward compatibility, you can use your DataStax Academy Profile Name and password instead of your email address and Downloads Key.

  4. Add the DataStax repository key:
    curl -L | sudo apt-key add -
  5. Update apt-get:
    sudo apt-get update
  6. Install the DataStax Enterprise package:
    • Install the latest version (6.0.6):
      sudo apt-get install dse-full=6.0.6-1
    • Install an earlier 6.0.x version:
      Note: To view the available 6.0.x versions, see the Release notes.
      sudo apt-get install \
        dse=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 \
      For example:
      Attention: Specify all packages; otherwise, the installation fails.
      sudo apt-get install \
        dse=6.0.0-1 \
        dse-full=6.0.0-1 \
        dse-libcassandra=6.0.0-1 \
        dse-libgraph=6.0.0-1 \
        dse-libhadoop2-client-native=6.0.0-1 \
        dse-libhadoop2-client=6.0.0-1 \
        dse-liblog4j=6.0.0-1 \
        dse-libsolr=6.0.0-1 \
        dse-libspark=6.0.0-1 \
    • 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 apt-get install dse-demos=6.0.6-1
    DataStax Enterprise is ready for additional configuration. See What's next.
  7. Optional: Single-node cluster installations only:
    1. Start DataStax Enterprise:
      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
      |/ State=Normal/Leaving/Joining/Moving
      --  Address    Load       Tokens  Owns    Host ID                               Rack
      UN  82.43 KB   128     ?       40725dc8-7843-43ae-9c98-7c532b1f517e  rack1
      Results not using vnodes:
      Datacenter: Analytics
      |/ State=Normal/Leaving/Joining/Moving
      --  Address         Load       Owns    Host ID                               Token                 Rack
      UN  103.24 KB  ?       3c1d0657-0990-4f78-a3c0-3e0c37fc3a06  1647352612226902707   rack1

What's next