In this article, we will have explained the necessary steps to install Apache Cassandra on Debian 10. Before continuing with this tutorial, make sure you are logged in as a user with sudo privileges. All the commands in this tutorial should be run as a non-root user.
Apache Cassandra is a highly scalable database management system that used to manage very large amounts of structured data. It can able to perform on multi-node setups. The Cassandra supports relational databases including MySQL, PostgreSQL and Microsoft SQL and Cassandra is used by a number of organizations including Apple, NetFlix, eBay, and Easou.
Install Apache Cassandra on Debian 10
Step 1. The first command will update the package lists to ensure you get the latest version and dependencies.
sudo apt update sudo apt upgrade sudo apt install wget curl gnupg gnupg1 gnupg2
Step 2. Install Apache Cassandra.
Download the GPG key to add the Cassandra repository for Debian 10:
curl https://www.apache.org/dist/cassandra/KEYS | sudo apt-key add -
Then, add the Apache Cassandra repository to Debian 10 sources list:
echo "deb http://www.apache.org/dist/cassandra/debian 311x main" | sudo tee -a /etc/apt/sources.list.d/cassandra.sources.list
Now install Cassandra by running the following command:
sudo apt update sudo apt install cassandra
Next, you have to start and enable the service to start the system:
sudo systemctl enable cassandra sudo systemctl start cassandra sudo systemctl status cassandra
Step 3. Configure Apache Cassandra.
Configure a little Cassandra if you are going to use it for create a cluster:
sudo nano /etc/cassandra/cassandra.yaml
Changes the file using following conf:
cluster_name : ['your_cluster_name']
seeds: ["ip_address", "ip_address"]
Next, restart the Apache Cassandra service to take effect:
sudo systemctl restart cassandra
Congratulation, you have learned how to install and configure Cassandra on Debian 10 Buster. If you have any question, please leave a comment below.