Installing Cassandra DB on Ubuntu

11.02.2025

Installing Cassandra DB on Ubuntu involves a series of steps to ensure a successful setup. Here is a comprehensive guide on how to install Cassandra DB on Ubuntu:

Installing Apache Cassandra 4 on Linux - YouTube

Prerequisites

Before you begin the installation process, make sure you have the following prerequisites:

DataStax Cassandra Tutorials – Installing Cassandra and OpsCenter …
Nov 1, 2011 … DataStax, the leading provider of database software for cloud applications, accelerates the ability of enterprises, government agencies, …
  • Ubuntu Server: Make sure you have an Ubuntu server up and running.
  • Java: Cassandra requires Java to be installed on the server. You can install OpenJDK using the following command:
sudo apt update sudo apt install default-jre

Step 1: Add Apache Cassandra Repository

The first step is to add the Apache Cassandra repository to your system. You can do this by running the following commands:

echo "deb http://www.apache.org/dist/cassandra/debian 311x main" | sudo tee -a /etc/apt/sources.list.d/cassandra.sources.list curl https://www.apache.org/dist/cassandra/KEYS | sudo apt-key add - sudo apt update

Step 2: Install Cassandra

Once the repository is added, you can install Cassandra by running the following command:

sudo apt install cassandra

Step 3: Start Cassandra Service

After the installation is complete, start the Cassandra service using the following command:

sudo service cassandra start

Step 4: Verify Installation

To verify that Cassandra is running on your system, you can use the nodetool utility:

nodetool status

Step 5: Accessing Cassandra

You can access the Cassandra shell by running the following command:

cqlsh

You have successfully installed and set up Cassandra DB on your Ubuntu server. You can now start using Cassandra for your applications and projects.

Do you like the article?

Yan Hadzhyisky

fullstack PHP+JS+REACT developer