Home / Articles / Database / datastax / 6.8.15 / install-using-tarball

Install DataStax Enterprise 6.8 using Binary Tarball

Setup

PackageVersionInstall Location
DSE Enterprise6.8.15/opt/dse-6.8.15
Javajdk1.8.0_241/opt/jdk1.8.0_241
Pythonpython-2.7.5-76.el7.x86_64/usr/bin/python

Prerequisites

  • Access as root user or user having root privileges
  • Latest version of Java 8
  • Download Java 8 latest version from Oracle official website and install on server

    # /opt/jdk1.8.0_241/bin/java -version java version "1.8.0_241" Java(TM) SE Runtime Environment (build 1.8.0_241-b07) Java HotSpot(TM) 64-Bit Server VM (build 25.241-b07, mixed mode)
  • Latest version of Python 2.7 or Python 3.6+
  • Python 2.7 is available in the Linux OS repository can be be installed using YUM.

    # /usr/bin/python --version Python 2.7.5
  • Create a new user "cassandra". This user will be used to run cassandra service.
  • # useradd cassandra
    # id cassandra
    uid=1003(cassandra) gid=1003(cassandra) groups=1003(cassandra)

Install DSE

  • Login as root user or with user having root privileges
  • Download DSE Enterprise binary tarball from the official website. Extract the binary tarball under /opt filesystem
  • # curl -L https://downloads.datastax.com/enterprise/dse.tar.gz | tar xz -C /opt % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 247 100 247 0 0 581 0 --:--:-- --:--:-- --:--:-- 581 100 1274M 100 1274M 0 0 3421k 0 0:06:21 0:06:21 --:--:-- 6050k
  • Change ownership of DSE Enterprise install directory to cassandra user
  • # chown -R cassandra:cassandra /opt/dse-6.8.15
  • Check the contents of DSE Enterprise install directories
  • # ls -l /opt/dse-6.8.15 drwxr-xr-x 2 cassandra cassandra 243 Aug 26 09:33 bin drwxr-xr-x 2 cassandra cassandra 172 Aug 26 09:33 clients drwxr-xr-x 11 cassandra cassandra 182 Aug 26 09:33 demos -rw-rw-r-- 1 cassandra cassandra 70 Aug 26 09:33 ds_branch.txt -rw-rw-r-- 1 cassandra cassandra 24 Aug 26 09:33 ds_timestamp.txt -rw-rw-r-- 1 cassandra cassandra 101 Aug 26 09:33 ds_version.txt drwxr-xr-x 3 cassandra cassandra 4096 Aug 26 09:33 javadoc drwxr-xr-x 2 cassandra cassandra 4096 Aug 26 09:33 lib drwxrwxr-x 2 cassandra cassandra 4096 Aug 26 09:33 licenses -rw-rw-r-- 1 cassandra cassandra 26530 Aug 26 09:33 LICENSE.txt -rw-rw-r-- 1 cassandra cassandra 3065 Aug 26 09:33 README.md drwxr-xr-x 15 cassandra cassandra 224 Aug 26 09:33 resources drwxr-xr-x 4 cassandra cassandra 77 Aug 26 09:33 tools
  • Create additional directory and set ownership to cassandra user
  • # mkdir /var/lib/cassandra # mkdir /var/log/cassandra # chown cassandra:cassandra /var/lib/cassandra # chown cassandra:cassandra /var/log/cassandra

  • Open a new SSH terminal and login as cassandra user
  • Update cassandra user profile to include PATH for java & DSE Enterprise binaries
  • # vi .bash_profile PATH=$PATH:$HOME/.local/bin:$HOME/bin:/opt/jdk1.8.0_241/bin:/opt/dse-6.8.15/bin
  • Bring the profile changes in effect
  • # source .bash_profile
  • Repeat the same step for root user and update the profile to include DSE Enterprise and java binary install path

Start DSE Enterprise service

  • Login as cassandra user
  • Start cassandra
  • # /opt/dse-6.8.15/bin/dse cassandra

DSE Service Status

  • Check cassandra status using nodetool command
  • # /opt/dse-6.8.15/bin/nodetool status Datacenter: Cassandra ===================== Status=Up/Down |/ State=Normal/Leaving/Joining/Moving/Stopped -- Address Load Owns (effective) Host ID Token Rack UN 127.0.0.1 123.61 KiB 100.0% 2d9cbbc3-a7d5-48c3-9406-e5b64969ed88 -544302039756551648 rack1
  • DSE Service Help Menu
  • # /opt/dse-6.8.15/bin/dse help /opt/dse-6.8.15/bin/dse: usage: dse [-f -u -p -a -b ] [command-args] Available commands: -v print DSE version cassandra run DSE server cassandra-stop stop DSE server fs run DSE File System shell spark Spark shell spark-class Spark class spark-submit Submit Spark job spark-jobserver Spark Jobserver command spark-history-server Spark History Server command spark-sql-thriftserver Spark SQL Thriftserver command pyspark Spark Python shell spark-sql Spark SQL command line beeline Beeline client from Spark sparkR Spark R shell spark-sql-metastore-migrate Migrate Spark SQL metastore from one DSE version to another graph-migrate-schema Migrate from Classic graph schema to Core graph schema client-tool Runs a DSE client tool command gremlin-console Runs Gremlin console exec run in DSE environment advrep Advanced Replication command

Stop DSE Service

  • Run following command to stop DSE service
  • # /opt/dse-6.8.15/bin/dse cassandra-stop