Hi All, this document deals with how to install Cassandra in Linux
Apache Cassandra is a free and open-source, distributed, wide column store, NoSQL database management system designed to handle large amounts of data across many commodity servers, providing high availability with no single point of failure.


* Server should be installed with Java 8 or above.


Download Cassandra

cd /opt/

wget http://www.apache.org/dyn/closer.lua/cassandra/3.11.3/apache-cassandra-3.11.3-bin.tar.gz

Extract the downloaded package

tar -xzvf apache-cassandra-3.11.3-bin.tar.gz

Start Cassandra

Goto Extracted folder and execute the following command.


Verify that Cassandra is running by invoking bin/nodetool status from the command line.

Install from the package for Ubuntu

Step 1: Add the repository and Key

echo "deb http://www.apache.org/dist/cassandra/debian 36x main" | sudo tee -a /etc/apt/sources.list.d/cassandra.sources.list

curl https://www.apache.org/dist/cassandra/KEYS | sudo apt-key add -

Step 2: Update the repositories

sudo apt-get update

If you get any key exception error to execute the below command to resolve.

sudo apt-key adv --keyserver pool.sks-keyservers.net --recv-key A278B781FE4B2BDA

Step 3: Install Cassandra

sudo apt-get install cassandra

Step 4: Start the service

sudo service cassandra start

Step 5: Verify that Cassandra is running by invoking nodetool status from the command line.

Note: The default location of configuration files in /etc/cassandra.

The default location of log and data directories is /var/log/cassandra/ and /var/lib/cassandra.

© 2018, Techrunnr. All rights reserved.

Questions Answered
Articles Written
Overall Points

Prabhin Prabharkaran

He is Technical professional. He is a person who loves to share tricks and tips on the Internet. He Posts what he does!!

Leave a Reply

Please wait...

Subscribe to our newsletter

Want to be notified when our article is published? Enter your email address and name below to be the first to know.