Installing DataStax Enterprise on Debian-based systems

Install DataStax Enterprise and OpsCenter using APT repositories on Debian-based systems.

For a complete list of supported platforms, see DataStax Enterprise Supported Platforms.

Prerequisites

Also see Recommended production settings.

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.

Procedure

These steps install DataStax Enterprise. After installing, you must configure and start DataStax Enterprise.

In a terminal window:

  1. Check which version of Java is installed:
    $ java -version
    Use the latest version of Oracle Java 6 or 7 on all nodes.
  2. Add a DataStax repository file called /etc/apt/sources.list.d/datastax.sources.list:
    $ echo "deb http://username:password@debian.datastax.com/enterprise stable main" | sudo tee -a /etc/apt/sources.list.d/datastax.sources.list
    where username and password are the credentials you created on the registration page.
  3. Add the DataStax repository key:
    $ curl -L https://debian.datastax.com/debian/repo_key | sudo apt-key add -
    Note: If you have trouble adding the key, use http instead of https.
  4. Install DataStax Enteprise:
    $ sudo apt-get update
    $ sudo apt-get install dse-full=version-1 dse=version-1 dse-hive=version-1 dse-pig=version-1 dse-demos=version-1 dse-libsolr=version-1 dse-libtomcat=version-1 dse-libsqoop=version-1 dse-liblog4j=version-1 dse-libmahout=version-1 dse-libhadoop-native=version-1 dse-libcassandra=version-1 dse-libhive=version-1 dse-libpig=version-1 dse-libhadoop=version-1

    For example:

    $ sudo apt-get update
    $ sudo apt-get install dse-full=3.2.7-1 dse=3.2.7-1 dse-hive=3.2.7-1 dse-pig=3.2.7-1 dse-demos=3.2.7-1 dse-libsolr=3.2.7-1 dse-libtomcat=3.2.7-1 dse-libsqoop=3.2.7-1 dse-liblog4j=3.2.7-1 dse-libmahout=3.2.7-1 dse-libhadoop-native=3.2.7-1 dse-libcassandra=3.2.7-1 dse-libhive=3.2.7-1 dse-libpig=3.2.7-1 dse-libhadoop=3.2.7-1
    Note:

    dse-full installs DataStax Enterprise and the DataStax Agent.

    dse-full opscenter installs DataStax Enterprise, DataStax Agent, and OpsCenter (Optional)

    Removing the datastax-agent package also removes the DataStax Enterprise package.

  5. Comment out the following option from the /etc/dse/cassandra/cassandra-env.sh file:
    JVM_OPTS="$JVM_OPTS -Denable-old-dse-state=true"

Results

DataStax Enterprise is ready for configuration.

What's next