Apache Cassandra is an open source distributed NoSQL database that is trusted by thousands of companies for scalability and high availability without compromising performance. Linear scalability and proven fault tolerance on merchandise hardware or cloud infrastructure make it a great platform for mission-critical data. In this article, we will teach you how to Install and Configure Apache Cassandra on Debian 11 step by step. Also, you can visit the packages available in Eldernode if you wish to purchase a Linux VPS Hosting.
Table of Contents
How to Install & Configure Apache Cassandra on Debian Linux
Apache Cassandra 4.0 is the most stable release in the project’s history and is the beginning of a shift to a 12-month release cycle with release supported for a three-year term. The latest version has undergone intensive testing a sets a new high benchmark for distributed databases, and includes new features that offer: Increased speed and scalability, Improved consistency, New configuration settings, Minimized latency, Enhanced security and observability, Better compression.
Apache Cassandra Features:
- Hybrid
- Fault Tolerant
- Focus on Quality
- Performant
- You’re In Control
- Security and Observability
- Distributed
- Scalable
- Elastic
Prerequisites
- Install the latest version of Java 8.
- For using cqlsh, Install the latest version of Python 2.7 or Python 3.6+.
Install Apache Cassandra on Debian 11
A) Install Java on Debian
To run Apache Cassandra, you must first install Java on your Debian linux server.
sudo apt install openjdk-11-jdk -y
Check the installed Java version using the following command.
java -version
B) Install Apache Cassandra Repository
sudo apt install apt-transport-https gnupg2 -y
sudo wget -q -O - https://www.apache.org/dist/cassandra/KEYS | sudo apt-key add -
sudo sh -c 'echo "deb https://downloads.apache.org/cassandra/debian 40x main" | sudo tee -a /etc/apt/sources.list.d/cassandra.sources.list'
C) Install Apache Cassandra
First, update your Debian 11 Linux server.
sudo apt update
Then run the following commands on your Debian server.
sudo apt install cassandra -y
sudo systemctl enable cassandra
sudo systemctl status cassandra
sudo nodetool status
E) Configure Apache Cassandra
To interact with the Cassandra cluster with the cqlsh command line tool, log in.
cqlsh
When done, exit the command.
EXIT;
Conclusion
Congratulations, you were able to install Apache Cassandra on your Linux Debian 11 server. You can also read the documentation from the official site for further check.