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

Install DataStax Enterprise 6.8 using YUM

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

Install DSE

  • Login as root user or with user having root privileges
  • Configure YUM repo file
  • # vi /etc/yum.repos.d/datastax.repo [datastax] name=DataStax Repo for DataStax Enterprise baseurl=https://rpm.datastax.com/enterprise/ enabled=1 gpgcheck=0
  • Download and install latest version of Datastax Enterprise
  • # yum install dse-full Loaded plugins: product-id, search-disabled-repos, subscription-manager cassandra/signature | 3.0 kB 00:00:00 !!! datastax | 2.5 kB 00:00:00 localrepo | 3.7 kB 00:00:00 datastax/primary_db | 849 kB 00:00:01 Resolving Dependencies --> Running transaction check ---> Package dse-full.noarch 0:6.8.15-1 will be installed --> Processing Dependency: dse-libcassandra = 6.8.15 for package: dse-full-6.8.15-1.noarch --> Processing Dependency: dse-libgraph = 6.8.15 for package: dse-full-6.8.15-1.noarch --> Processing Dependency: dse-libsolr = 6.8.15 for package: dse-full-6.8.15-1.noarch --> Processing Dependency: dse-libspark = 6.8.15 for package: dse-full-6.8.15-1.noarch --> Processing Dependency: dse-libhadoop2-client = 6.8.15 for package: dse-full-6.8.15-1.noarch --> Processing Dependency: dse-libtomcat = 6.8.15 for package: dse-full-6.8.15-1.noarch --> Processing Dependency: dse-liblog4j = 6.8.15 for package: dse-full-6.8.15-1.noarch --> Processing Dependency: dse = 6.8.15 for package: dse-full-6.8.15-1.noarch --> Running transaction check ---> Package dse.noarch 0:6.8.15-1 will be installed ---> Package dse-libcassandra.noarch 0:6.8.15-1 will be installed ---> Package dse-libgraph.noarch 0:6.8.15-1 will be installed ---> Package dse-libhadoop2-client.noarch 0:6.8.15-1 will be installed ---> Package dse-liblog4j.noarch 0:6.8.15-1 will be installed ---> Package dse-libsolr.noarch 0:6.8.15-1 will be installed ---> Package dse-libspark.noarch 0:6.8.15-1 will be installed ---> Package dse-libtomcat.noarch 0:6.8.15-1 will be installed --> Finished Dependency Resolution Dependencies Resolved ============================================================================================================================================================== Package Arch Version Repository Size ============================================================================================================================================================== Installing: dse-full noarch 6.8.15-1 datastax 177 k Installing for dependencies: dse noarch 6.8.15-1 datastax 203 M dse-libcassandra noarch 6.8.15-1 datastax 94 M dse-libgraph noarch 6.8.15-1 datastax 249 M dse-libhadoop2-client noarch 6.8.15-1 datastax 71 M dse-liblog4j noarch 6.8.15-1 datastax 14 k dse-libsolr noarch 6.8.15-1 datastax 69 M dse-libspark noarch 6.8.15-1 datastax 445 M dse-libtomcat noarch 6.8.15-1 datastax 5.4 M Transaction Summary ============================================================================================================================================================== Install 1 Package (+8 Dependent packages) Total download size: 1.1 G Installed size: 1.3 G Is this ok [y/d/N]: y Downloading packages: (1/9): dse-full-6.8.15-1.noarch.rpm | 177 kB 00:00:00 (2/9): dse-libcassandra-6.8.15-1.noarch.rpm | 94 MB 00:00:29 (3/9): dse-6.8.15-1.noarch.rpm | 203 MB 00:01:00 (4/9): dse-libhadoop2-client-6.8.15-1.noarch.rpm | 71 MB 00:00:20 (5/9): dse-liblog4j-6.8.15-1.noarch.rpm | 14 kB 00:00:00 (6/9): dse-libsolr-6.8.15-1.noarch.rpm | 69 MB 00:00:27 (7/9): dse-libgraph-6.8.15-1.noarch.rpm | 249 MB 00:01:21 (8/9): dse-libtomcat-6.8.15-1.noarch.rpm | 5.4 MB 00:00:01 (9/9): dse-libspark-6.8.15-1.noarch.rpm | 445 MB 00:01:16 -------------------------------------------------------------------------------------------------------------------------------------------------------------- Total 6.1 MB/s | 1.1 GB 00:03:06 Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : dse-libhadoop2-client-6.8.15-1.noarch 1/9 Installing : dse-libcassandra-6.8.15-1.noarch 2/9 Installing : dse-6.8.15-1.noarch 3/9 Installing : dse-libsolr-6.8.15-1.noarch 4/9 Installing : dse-libgraph-6.8.15-1.noarch 5/9 Installing : dse-libtomcat-6.8.15-1.noarch 6/9 Installing : dse-liblog4j-6.8.15-1.noarch 7/9 Installing : dse-libspark-6.8.15-1.noarch 8/9 Installing : dse-full-6.8.15-1.noarch 9/9 Verifying : dse-libsolr-6.8.15-1.noarch 1/9 Verifying : dse-libgraph-6.8.15-1.noarch 2/9 Verifying : dse-libtomcat-6.8.15-1.noarch 3/9 Verifying : dse-6.8.15-1.noarch 4/9 Verifying : dse-libcassandra-6.8.15-1.noarch 5/9 Verifying : dse-liblog4j-6.8.15-1.noarch 6/9 Verifying : dse-libspark-6.8.15-1.noarch 7/9 Verifying : dse-full-6.8.15-1.noarch 8/9 Verifying : dse-libhadoop2-client-6.8.15-1.noarch 9/9 Installed: dse-full.noarch 0:6.8.15-1 Dependency Installed: dse.noarch 0:6.8.15-1 dse-libcassandra.noarch 0:6.8.15-1 dse-libgraph.noarch 0:6.8.15-1 dse-libhadoop2-client.noarch 0:6.8.15-1 dse-liblog4j.noarch 0:6.8.15-1 dse-libsolr.noarch 0:6.8.15-1 dse-libspark.noarch 0:6.8.15-1 dse-libtomcat.noarch 0:6.8.15-1 Complete!

    Start DSE Service

    • Set JAVA_HOME environment variable
    • Add following line at the end of /etc/profile file and save the file.

      # vi /etc/profile export JAVA_HOME=/opt/jdk1.8.0_241 export PATH=$PATH:/opt/jdk1.8.0_241/bin

      Edit DSE startup file and add the JAVA_HOME variable entry anywhere at the start of this file.

      # vi /etc/init.d/dse export JAVA_HOME=/opt/jdk1.8.0_241
    • Add DSE service to systemd on RHEL 7 or 8 servers
    • # systemctl daemon-reload
    • Start DSE Service
    • # systemctl start dse

    DSE Service Status

    • Check status of DSE Service
    • # systemctl status dse dse.service - LSB: DataStax Enterprise Loaded: loaded (/etc/rc.d/init.d/dse; bad; vendor preset: disabled) Active: active (exited) since Fri 2021-08-27 17:46:06 EDT; 5s ago Docs: man:systemd-sysv-generator(8) Process: 12344 ExecStart=/etc/rc.d/init.d/dse start (code=exited, status=0/SUCCESS) Aug 27 17:45:39 cassandra-1.linuxtechspace.com systemd[1]: Starting LSB: DataStax Enterprise... Aug 27 17:45:40 cassandra-1.linuxtechspace.com dse[12344]: Starting DSE daemon : dse Aug 27 17:45:40 cassandra-1.linuxtechspace.com dse[12344]: DSE daemon starting with only Cassandra enabled (edit /etc/default/dse to enable other features) Aug 27 17:45:40 cassandra-1.linuxtechspace.com su[12653]: (to cassandra) root on none Aug 27 17:46:06 cassandra-1.linuxtechspace.com systemd[1]: Started LSB: DataStax Enterprise.
    • Check status using nodetool command
    • # 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 194.61 KiB 100.0% 73e52577-192a-415d-9849-c883c7a6b6ea 4045719742769345559 rack1