How to Install Cassandra v3 on CentOS 6

In this blog, we will explain how to Install Cassandra v3 on CentOS 6. Apache Cassandra is a NoSQL database intended for storing large amounts of data in a decentralized, highly available cluster.

Pre-requisite to install Cassandra on CentOS or Linux

Check Java version if it is already installed:

Install Java 8 on Linux

Create cassandra.repo file, so that you can install from yum command:

Install Cassandra on Linux:

A command to start Cassandra service on Linux:

Make Cassandra to start automatically after reboot:

Command to restart Cassandra service on Linux

Command to shutdown Cassandra service on Linux

Cassandra related files:

 Cassandra commands for service  start|stop|status:

Cassandra known Issue:How to Install Cassandra v3 on CentOS 6

ERROR: [root@sks-cluster-linux~]# service cassandra status

cassandra dead but pid file exists


ERROR: – Local host name unknown:

Cassandra Solutions 1:

//This error may be because of heap-memory of system – check your system memory (free -m/2 after divide it should be greater than 2GB)

//So upgrade your box to min 6GB

Cassandra Solution 2:

In AWS EC2, when you install Cassandra you can have this problem because of the initially configured hostname which is set to ip-x-x-x-x being x-x-x-x the EC2 instance private address. The steps to solve it:

Edit network configuration file /etc/sysconfig/network

Edit hosts file:

Add hostname entry to /etc/hosts

Set hostname or reboot

These are the steps how to Install Cassandra v3 on CentOS 6


Related Articles

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.


Adblock Detected

Please consider supporting us by disabling your ad blocker
%d bloggers like this: