• Home
  • Linux
  • Ubuntu
  • Debian
  • CentOS
  • Linux Commands
  • About Us
  • Donate
TecNStuff
Menu
  • Home
  • Linux
  • Ubuntu
  • Debian
  • CentOS
  • Linux Commands
  • About Us
  • Donate

How to Install Apache Cassandra on Debian 11

Written by Admin, Updated On January 6, 2023
cassandra, database, debian, java
How to Install Apache Cassandra on Debian 11

Apache Cassandra is an open-source NoSQL database system with high availability and without compromising performance. As Cassandra belongs to the NoSQL category, it stores data in the form of key value pairs. Many large companies like Github, NetFlix, Reddit and Instagram are using Apache Cassandra. In this tutorial we will learn how to install Apache Cassandra on Debian 11 bullseye.

How to Install Apache Cassandra on Debian 11#

In this section given step by step procedure to install Cassandra on Debian 11. Let’s start to follow steps with few prerequisites.

Prerequisites#

Make sure that following requirements are satisfied before start installation:

  • You should logged in as root or user with sudo privileges.
  • Latest Java is installed
  • Access to Apache Cassandra repository

Step 1 – Install Java

To install the latest Apache Cassandra it requires latest Java installed on your Debian 11 system. So if you don’t have latest Java installed you can install using following command:

sudo apt update
sudo apt install default-jdk

Once the process completed, verify the Java installation by typing:

java -version

The output should look something like this:

openjdk version "11.0.17"
OpenJDK Runtime Environment (build 11.0.17+8-post-Debian-2)
OpenJDK 64-Bit Server VM (build 11.0.17+8-post-Debian-2, mixed mode, sharing)

Step 2 – Add Repository

Next, you need to add repository for the Apache Cassandra and import the GPG key using wget to the system:

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

After adding GPG key, you can add the Cassandra repository by issuing the below mentioned command:

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

Step 3 – Install Apache Cassandra

At this stage, you are now ready to install Cassandra on your Debian system.

Update the repository package list:

sudo apt update

After updating package, run the following command to install Apache Cassandra:

sudo apt install cassandra

Apache Cassandra service will automatically start after the installation process is complete.

Step 4 – Verify Apache Cassandra Installation

You can check status of cassandra service to verify it’s installation by issuing below command:

sudo nodetool status

It should show output something like below:

Datacenter: datacenter1
=======================
Status=Up/Down
|/ State=Normal/Leaving/Joining/Moving
--  Address    Load        Tokens       Owns (effective)  Host ID                               Rack
UN  127.0.0.1  103.71 KiB  256          100.0%            dd8f6709-08ef-45b8-881e-5c1b5bbfc7f7  rack1

That’s it. At this step, Apache Cassandra is installed on your Debian server.

Conclusion#

You have successfully learned how to install Apache Cassandra on Debian 11. To learn more about Cassandra, visit the official Apache Cassandra Documentation page.

If you have a problem or suggestion, please leave a comment below.

If our content helps you, please consider buying us a coffee

Thank you for your support.

Share On
Share on Facebook
Share on Twitter
Share on Reddit
Share on Tumblr
 Previous Article How to Install Docker Compose on Ubuntu 22.04
Next Article   How to Install GCC on Ubuntu 22.04

Related Posts

  • How to Install WordPress with Nginx on Debian 11

    How to Install WordPress with Nginx on Debian 11

    March 22, 2023
  • How to Install Mongodb on Ubuntu 22.04

    How to Install MongoDB on Ubuntu 22.04

    March 12, 2023
  • How to Install and Use Docker on Debian 11

    How to Install and Use Docker on Debian 11

    March 10, 2023

Leave a Reply Cancel reply

DigitalOcean Referral Badge

Popular Posts

  • How to Install Microsoft Edge Browser on Ubuntu 22.04
    How to Install Microsoft Edge Browser on Ubuntu 22.04 March 14, 2023
  • How to Install Ruby on Ubuntu 22.04 LTS
    How to Install Ruby on Ubuntu 22.04 LTS February 27, 2023
  • How to Install LEMP Stack on Ubuntu 22.04
    How to Install LEMP Stack on Ubuntu 22.04 March 18, 2023
  • How to Install Set Up Apache Virtual Hosts on Ubuntu 22.04
    How to Set Up Apache Virtual Hosts on Ubuntu 22.04 March 2, 2023
  • How to Install MariaDB on Debian 11 Bullseye
    How to Install MariaDB on Debian 11 Bullseye March 8, 2023
© 2020 TecNStuff All rights reserved. This website is using and storing cookies on your browser. By using this website you agree our Privacy Policy.  Follow us -  Twitter | Facebook