How to Install Apache Cassandra on CentOS 7

Install Apache Cassandra on CentOS 7

In this article, we will have explained the necessary steps to install and configure Apache Cassandra on CentOS 7. 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 Cassandrais a highly scalable database management systemthat used to manage very large amounts of structured data. It can able to perform on multi-node setups. The Cassandrasupports relational databases including MySQL, PostgreSQLand Microsoft SQL.

Install Apache Cassandra on CentOS

Step 1. The first command will update the package lists to ensure you get the latest version and dependencies.

Step 2. Install Java package.

Cassandra is written in Java. As such, you’ll need the Java VM installed in order to run it. Do so via Yum:

Verify the Java installation by running the following command which will print the Java version:

Step 2. Install Apache Cassandra.

Now that Java is installed, the next step is to add the Apache Cassandra repository:

Paste the following content into the file:

Now we can install Cassandra by running the following command:

Start and enable the Cassandra service:

Now enter the Cassandrain command line:

Verify that Cassandra is running by typing:

Congratulation, you have learned how to install and configure Apache Cassandra on CentOS 7. If you have any question, please leave a comment below.