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 7

You can also read our guide on installing Apache Cassandra on Ubuntu and Debian

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

name=Apache Cassandra

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