

How to Install Apache Cassandra on Debian 11
source link: https://www.vultr.com/docs/how-to-install-apache-cassandra-on-debian-11
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Introduction
Apache Cassandra is an open-source NoSQL distributed database engine. NoSQL database engines store data as key-value pairs, and Apache Cassandra comes with Cassandra Query Language (CQL) for retrieving the data. It can handle large amounts of data while ensuring availability and consistency. It supports single-node replication and multi-location replication for redundancy, no single point of failure, and disaster recovery. It runs several nodes within a cluster, where each single node can receive and process a complete request without communication to the master node.
This article explains how to install Apache Cassandra on Debian 11.0 server.
Prerequisites
Perform the following steps first:
- Deploy a Vultr Debian 11.0 Server.
- Connect to the server with SSH.
- Update the server.
- Create a non-root user with sudo access.
1. Install Java
For Apache Casandra to run, you need Java installed in your server. Install Java.
$ sudo apt install openjdk-11-jdk -y
Check the Java version installed.
$ java -version
2. Configure Apache Cassandra Repository
Install the required dependencies.
$ sudo apt install apt-transport-https gnupg2 -y
Download and add the Apache Cassandra GPG key.
$ sudo wget -q -O - https://www.apache.org/dist/cassandra/KEYS | sudo apt-key add -
Add the downloaded repository.
$ sudo sh -c 'echo "deb https://downloads.apache.org/cassandra/debian 40x main" | sudo tee -a /etc/apt/sources.list.d/cassandra.sources.list'
3. Install Apache Cassandra
Update the system.
$ sudo apt update
Install Apache Cassandra.
$ sudo apt install cassandra -y
Enable Apache Cassandra to start on system boot.
$ sudo systemctl enable cassandra
Check the status of the Apache Cassandra service.
$ sudo systemctl status cassandra
Check the status of your cluster. You might need to wait for a couple of seconds for all nodes in the cluster to finish starting up.
$ sudo nodetool status
4. Configure Apache Cassandra
Log in with the cqlsh
command-line tool to interact with Cassandra cluster.
$ cqlsh
When finished, exit the prompt.
EXIT;
Conclusion
You have installed Apache Cassandra on Debian 11.0 server. You can check the official documentation to learn more about using and managing the database server.
Want to contribute?
You could earn up to $600 by adding new articles
Recommend
-
5
Install Apache Solr on Ubuntu 20.04/18.04 & Debian 10/9Search ComputingForGeeksApache Solr is a highly s...
-
23
How to Install SuiteCRM with Apache and free Let's Encrypt SSL on Debian 11 SuiteCTM is an open-source Customer Relationship Management solution written in PHP. It is a fully-featured and highly-extensible CRM application that runs...
-
6
How to Install Apache Cassandra on AlmaLinux / Rocky Linux 8 Apache Cassandra is an open-source NoSQL distributed database management system. Cassandra can be scaled horizontally by adding more nodes across which data is replicated...
-
9
How to Install Apache Guacamole on Debian 11 Apache Guacamole is a free and open-source remote desktop gateway that allows you to connect to your computer/server remotely using different protocols such as SSH, RDP, and VNC. Apache G...
-
8
Using a Different System?
-
12
Using a Different System?
-
7
<?xml encoding="utf-8" ??>If you're looking for a powerful open-source distributed database system, but don't want to spend hours configuring and installing it, then Cassandra is the right solution for yo...
-
5
Install Apache Cassandra on AlmaLinux 8|Oracle Linux 8Many organizations handling large unstructured data require a highly scalable and available tool. Apache Cassandra is the most popular tool for this task.Apache Cassandra
-
10
How to Install Odoo 14 on Debian 11 With Apache as a Reverse Proxy
-
7
How to Install Apache Cassandra on Ubuntu ...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK