Cassandra Setup

By | April 22, 2018

Cassandra Cluster Setup for Linux


  1. Introduction to Cassandra & Overview of contents
  2. Software Requirements
  3. Linux Operating System Installation ( VM ware)
  4. Static IP Configuration
  5. Java Setup & Environment Variables Settings
  6. Cassandra Installation & Configuration for Node 1
  7. Create an image of existing Linux environment (ova file).
  8. Cassandra Setup & Configuration for Node 2.
  9. Multi-Node Cluster Setup & Example of replication

There is an increasing demand for No-SQL database experts, especially those highly trained on Apache Cassandra. This video focuses on introduction to Cassandra and overview of the course topics in upcoming videos.


2. Sofware Requirement for Cassandra Installation

  1. VMware Player
  2. MobaXterm
  3. Linux Cent Operating System 7
  4. Java jdk 8
  5. Cassandra



3. Linux Operating System Installation on VMWare Player.

A step by step installation process of cent OS on virtual machine.


4. How to configure static IP in Linux (cent OS 7)?

We need static IP as we intend to run the server always on single ip address. The clients for the server will connect via the IP address which we have communicated and it would be disaster if we keep on getting dynamic IP address now and then. So to avoid any complexity and hectic process we need to configure static IP address. Below video shows the process of setting static IP in Linux.


5. How to install Java in Linux?

Thousands of devices & applications need java to support their functionality. So, is the Cassandra. We need to install java and python in order to use Cassandra. However Linux is already shipped with python so we skip it. But we have to install java. Below video describes step by step process of installing java in Linux and also setting environment variables.


6. How to install Cassandra in Linux?


7. How to create an image of existing Linux operating system on virtual machine?


8. How to configure node 2 for Cassandra cluster?


9. How to build multi node Cassandra Cluster in Linux?

Firewall Commands

####Execute as root ############
#find the status of firewall
systemctl status firewalld

#get all the available zones
firewall-cmd –get-active-zones

# find all open ports & interfaces & services
firewall-cmd –list-all

#Add ports to firewall
firewall-cmd –zone=public –add-port=7000/tcp –add-port=9042/tcp –-permanent
#You can use –remove in the place of –add to undo the changes
#You can use –internal/any your zone in the place of public if you have any such zone

#To bring changes to effective
firewall-cmd –reload