Installing DataStax Enterprise 5.1 on Debian-based systems using APT

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

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

Some things to know about installing DSE

  • The latest version of DataStax Enterprise 5.1 is 5.1.12.
  • 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.
    Note: The DataStax Installer has options to install developer related tools: Javadoc, DataStax Enterprise demos, DataStax Studio, and the DSE Graph Loader.
  • If using OpCenter 6.0, override the default DataStax Agent. See compatibility of OpsCenter with DSE. After installation:
    sudo apt-get install datastax-agent-6.0.supported_version-1
    Note: You can also install the agent during installation by adding datastax-agent-6.0.supported_version-1 to the installation command in 5.
  • 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.


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.


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

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

    • 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.
    • Package management tools do not install OpenJDK 8 or Oracle Java.
  2. 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_profile_name and downloads_key are your DataStax Academy Profile Name 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 email address and password instead of your Profile Name and Downloads Key.

  3. Add the DataStax repository key:
    curl -L | sudo apt-key add -
  4. Update apt-get:
    sudo apt-get update
  5. Install the DataStax Enterprise package:
    Attention: Specify all packages; otherwise, the installation fails.
    • Install the latest 5.1.x version:
      sudo apt-get install dse=5.1.12-1 \
        dse-full=5.1.12-1 \
        dse-libcassandra=5.1.12-1 \
        dse-libgraph=5.1.12-1 \
        dse-libhadoop2-client-native=5.1.12-1 \
        dse-libhadoop2-client=5.1.12-1 \
        dse-liblog4j=5.1.12-1 \
        dse-libsolr=5.1.12-1 \
        dse-libspark=5.1.12-1 \
    • Install an earlier 5.1.x version:
      Note: To view the available versions, see the Release notes.
      sudo apt-get install 
        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 \
    • 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

    DataStax Enterprise is ready for additional configuration.

  6. 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


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

Package installations
Installer-Services installations


Tarball installations
Installer-No Services installations



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

Package installations
Installer-Services installations


Tarball installations
Installer-No Services installations