How to Install Apache Cassandra on Ubuntu 18.04 and 16.04

 

Apache Cassandra is a free and open-source NoSQL database with no single purpose of disappointment. It gives straight versatility and high accessibility without trading off execution. Apache Cassandra is utilized by various associations including Apple, NetFlix, eBay, and more.

In this post, We will install and configure Apache Cassandra using ubutnu 16.04 and 18.04.

Step 1: Update System


You need to update the ubuntu repository by using following command.

$ sudo apt-get update

Step 2: Install Dependencies

Apache Cassandra has some packages dependencies, Use the following command for that.

$ sudo apt-get install default-jdk -y
$ sudo apt-get install software-properties-common build-essential -y

Step 3: Add Cassandra Repository

$ sudo wget -q -O – https://www.apache.org/dist/cassandra/KEYS | sudo apt-key add –
$ sudo sh -c ‘echo “deb http://www.apache.org/dist/cassandra/debian 311x main” > /etc/apt/sources.list.d/cassandra.list’

Step 4: Install Apache Cassandra

First you need to update the repository and then install the Apache Cassandra packages by using the command.

$ sudo apt-get update
$ sudo apt-get install cassandra -y

Step 5: Controlling Daemon of Cassandra

Use the following command to control the Cassandra service.

$ sudo systemctl status cassandra    # To get the status
$ sudo systemctl stop cassandra      # To stop the service
$ sudo systemctl start cassandra     # To start the service
$ sudo systemctl disable cassandra   # On boot disable the service
$ sudo systemctl start cassandra     # On boot enable the service

How to Install Apache Cassandra on Ubuntu 18.04 and 16.04

Leave a Reply

Your email address will not be published. Required fields are marked *

Scroll to top