DataStax Enterprise 3.1 Documentation

Installing the DataStax Enterprise package on Debian and Ubuntu

This documentation corresponds to an earlier product version. Make sure this document corresponds to your version.

Latest DSE documentation | Earlier DSE documentation

DataStax provides a packaged release for installing DataStax Enterprise and OpsCenter on Debian and Ubuntu systems. For a complete list of supported platforms, see DataStax Enterprise Supported Platforms.

Prerequisites

  • Before you can install, you must register with DataStax to get a username and password.
  • Advanced Package Tool is installed.
  • Root or sudo access on the install machine.
  • Install the latest version of Oracle Java SE Runtime Environment (JRE) 6 or 7.
  • Java Native Access (JNA) is required for production installations. See Installing the JNA on Debian or Ubuntu Systems.

Note

If you are using Ubuntu 10.04 LTS, you need to update to JNA 3.4. See the steps describing this procedure in Installing the JNA on Debian or Ubuntu Systems.

Also see Recommended production settings.

Installation steps

DataStax provides Debian package repositories for Debian and Ubuntu systems.

From 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. If you need help installing Java, see Installing the Oracle JRE and JNA.

  2. Add the DataStax repository to the /etc/apt/sources.list.d/datastax.sources.list file. For example:

    deb http://<username>:<password>@debian.datastax.com/enterprise stable main
    
  3. Add the DataStax repository key to your Aptitude trusted keys:

    $ curl -L https://debian.datastax.com/debian/repo_key | sudo apt-key add -
    

    Note

    If you have trouble adding the key or getting the packages, use http instead of https.

  4. Install the packages:

    $ 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 install dse-full=3.1.4-1 dse=3.1.4-1 dse-hive=3.1.4-1 dse-pig=3.1.4-1 dse-demos=3.1.4-1 dse-libsolr=3.1.4-1 dse-libtomcat=3.1.4-1 dse-libsqoop=3.1.4-1 dse-liblog4j=3.1.4-1 dse-libmahout=3.1.4-1 dse-libhadoop-native=3.1.4-1 dse-libcassandra=3.1.4-1 dse-libhive=3.1.4-1 dse-libpig=3.1.4-1 dse-libhadoop=3.1.4-1
    

Note

dse-full installs only DataStax Enterprise. dse-full opscenter installs both DataStax Enterprise and OpsCenter.

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

Next steps