How To Install Apache Cassandra on CentOS 6

Install Apache Cassandra on CentOS 6

For those of you who didn’t know, Apache Cassandra is a NoSQL database intended for storing large amounts of data in a decentralized, highly available cluster. NoSQL refers to a database with a data model other than the tabular relations used in relational databases such as MySQL, PostgreSQL, and Microsoft SQL. The Apache Cassandra database is the right choice when you need scalability and high availability without compromising performance.

This article assumes you have at least basic knowledge of linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple. I will show you through the step by step installation Apache Cassandra on CentOS 6.

Install Apache Cassandra on CentOS 6

Step 1. First, Downloading latest Java archive.

Download latest Java SE Development Kit 8 release from its official download page or use following commands to download from shell:

Install JAVA using alternatives:

At this point JAVA 8 has been successfully installed on your system. We also recommend to setup javac and jar commands path using alternatives:

Verify Installed Java version:

Step 2. Add DataStax Community Repository.

Add new repository:

Add the following information to the file you’ve created:

Step 3. Install Apache Cassandra.

Step 4. Configure Apache Cassandra Environment.

Step 5. Start and Verify the newly installed cassandra.

Check Cassandra service status:

Enter Cassandra command line:

Check Cassandra node status:

Congratulation’s! You have successfully installed Apache Cassandra. Thanks for using this tutorial for installing Apache Cassandra on CentOS 6 system.

VPS Manage Service Offer
If you don’t have time to do all of this stuff, or if this is not your area of expertise, we offer a service to do “VPS Manage Service Offer”, starting from $10 (Paypal payment). Please contact us to get a best deal!