How to install Apache Cassandra 3.11.x on Debian 11

Apache Cassandra is a free NoSQL database management system. This system is designed to create highly scalable and reliable repositories of huge data arrays presented in the form of a hash. Here we describe how to install Apache Cassandra (its latest version 3.11.) For servers running CentOS 7

First! You need to understand that the server needs at least 4GB of memory. If it is less, then this can lead to instability in the work of Apache Cassandra 3.11.2 on Debian 11.

Java installation

In order to use Apache Cassandra correctly and without problems, you should install Java on your server. This can be done using the following command:

apt install openjdk-11-jdk -y

Next, you need to configure the repositories and other dependencies.

apt install apt-transport-https gnupg2 -y

Then you need to add the key. The name commonly used for it is Apache Cassandra GPG (use wget)

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

Then you should add the downloaded repository

sh -c 'echo "deb https://downloads.apache.org/cassandra/debian 40x main" | sudo tee -a /etc/apt/sources.list.d/cassandra.sources.list'

Installing Apache Cassandra

Before installation, we recommend that you update the system

apt-get update

Then you can proceed to install

apt-get install Apache Cassandra

Then you can enable this utility to run every time your system boots

systemctl enable cassandra

After successful installation, we also recommend checking the status of the Apache Cassandra service

systemctl status cassandra

To interact with the Cassandra cluster, you will be able to login with the following simple command:

cqlsh

Was this article helpful?

Related Articles

Leave A Comment?