Install DataStax Enterprise 6.8 using Binary Tarball
Setup
Package | Version | Install Location |
---|---|---|
DSE Enterprise | 6.8.15 | /opt/dse-6.8.15 |
Java | jdk1.8.0_241 | /opt/jdk1.8.0_241 |
Python | python-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
- Latest version of Python 2.7 or Python 3.6+
- Create a new user "cassandra". This user will be used to run cassandra service.
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)
Python 2.7 is available in the Linux OS repository can be be installed using YUM.
# /usr/bin/python --version
Python 2.7.5
# useradd cassandra
# id cassandra uid=1003(cassandra) gid=1003(cassandra) groups=1003(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
- Change ownership of DSE Enterprise install directory to cassandra user
- Check the contents of DSE Enterprise install directories
- Create additional directory and set ownership to cassandra user
- Open a new SSH terminal and login as cassandra user
- Update cassandra user profile to include PATH for java & DSE Enterprise binaries
- Bring the profile changes in effect
- Repeat the same step for root user and update the profile to include DSE Enterprise and java binary install path
# 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
# chown -R cassandra:cassandra /opt/dse-6.8.15
# 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
# mkdir /var/lib/cassandra
# mkdir /var/log/cassandra
# chown cassandra:cassandra /var/lib/cassandra
# chown cassandra:cassandra /var/log/cassandra
# vi .bash_profile
PATH=$PATH:$HOME/.local/bin:$HOME/bin:/opt/jdk1.8.0_241/bin:/opt/dse-6.8.15/bin
# source .bash_profile
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
- DSE Service Help Menu
# /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
# /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