How to Install Cassandra DB
17.02.2025
Introduction
Cassandra is a highly scalable and distributed NoSQL database management system designed to handle large amounts of data across many commodity servers, providing high availability with no single point of failure. In this guide, we will walk through the steps to install Cassandra on your system.

Prerequisites
Before you begin the installation process, make sure you have the following prerequisites:
- Operating System: Cassandra is compatible with Linux, Windows, and macOS.
- Java: Cassandra requires Java to be installed on your system. Make sure you have Java 8 or higher installed.
Installation Steps
Follow these steps to install Cassandra on your system:
Step 1: Add the Apache Cassandra Repository
First, you need to add the Apache Cassandra repository to your system. Create a new repository file for Cassandra:
echo "deb http://www.apache.org/dist/cassandra/debian 311x main" | sudo tee -a /etc/apt/sources.list.d/cassandra.sources.list
Step 2: Add the Apache Cassandra Repository Key
Next, add the Apache Cassandra repository key to ensure the packages are authentic:
curl https://www.apache.org/dist/cassandra/KEYS | sudo apt-key add -
Step 3: Update the Package Index
Update the package index to include the newly added Cassandra repository:
sudo apt-get update
Step 4: Install Cassandra
Now, you can install Cassandra using the following command:
sudo apt-get install cassandra
Step 5: Start Cassandra Service
Once the installation is complete, start the Cassandra service and enable it to launch automatically on system boot:
sudo systemctl start cassandra sudo systemctl enable cassandra
Step 6: Verify Installation
To verify that Cassandra is running, you can use the following command:
nodetool status
Conclusion
In conclusion, you have successfully installed Apache Cassandra on your system. You can now start using Cassandra to manage your large-scale data with ease. If you encounter any issues during the installation process, refer to the official Cassandra documentation for more information.