Apache Cassandra database is the right choice when you need scalability and high availability without compromising performance. Cassandra consistently outperforms popular NoSQL alternatives in benchmarks and real applications, primarily because of fundamental architectural decisions. Linear scalability and proven fault-tolerance on commodity hardware or cloud infrastructure make it the perfect platform for mission-critical data.
Cassandra requires that the latest version of Java 8, either the Oracle Java Standard Edition 8 or OpenJDK 8 be installed. To verify that you have the correct version of java installed, type
java -version. If you don't have Java installed, you can check out our guide on installing Java on CentOS 8
In this guide, we will install the latest version of Apache Cassandra on CentOS 8
Deploying your cloud server
If you have not already registered with Cloudwafer, you should begin by getting signed up. Take a moment to create an account after which you can quickly deploy your cloud servers.
Updating System Packages
It is recommended that you update the system to the latest packages before beginning any significant installations. Issue the command below:
sudo yum update -y
Step 1: Add the Apache Cassandra repository
Enter the commands below to create the Apache Cassandra repository file:
sudo nano /etc/yum.repos.d/cassandra.repo
Ensure to save before closing
[cassandra] name=Apache Cassandra baseurl=https://www.apache.org/dist/cassandra/redhat/40x/ gpgcheck=1 repo_gpgcheck=1 gpgkey=https://www.apache.org/dist/cassandra/KEYS
Next, install Apache Cassandra by issuing the command below:
sudo yum install cassandra
Step 2: Start and enable Cassandra
After successfully installing, issue the command to start the Cassandra service and allow it to start on boot:
sudo systemctl enable cassandra sudo systemctl start cassandra
You can issue the command below to check the status of the Cassandra service.
sudo systemctl status cassandra
You can read the documentation of Apache Cassandra for more information