You are on page 1of 13

Cassandra Cluster

Large organization such as Amazon,


Facebook, etc. have a huge amounts of
data to manage. So these organizations
cant store that huge amount of data on
the single machine. This when they use
databases like Cassandra with distributed architecture.
These organizations store that huge amount of data on multiples nodes. These
nodes communicate with each other. For this purpose, Cassandra cluster is
established.
Cluster is basically a group of
nodes, so that nodes can
communicate with each other
easily.
Coordinator node is the node that
communicates with replicas.
Partitioner
A partitioner determines how the data should be distributed on the cluster.
Partitioner uses a hash function to distribute data on the cluster. It takes partition
key to calculate the hash. That hash is called token. Data is distributed on the basis
of this token.
In this tutorial, you will learnPrerequisites for Cassandra Cluster
Enterprise Edition Installation
Starting Cassandra Node
Here is the step by step guide for creating Cassandra cluster.

Prerequisites for Cassandra Cluster


There are following requirements for cluster setup.

1.
2.
3.
4.
5.

You should have multiple machines (Nodes).


Nodes must be connected with each other on Local Area Network (LAN).
Linux must be installed on each node.
You should have Cassandra Enterprise edition.
JDK must be installed on each machine.

Enterprise Edition Installation


On each machine, Cassandra enterprise edition needs to be installed. These are the
steps for installation of Cassandra enterprise edition.
Step 1) On Linux terminal, run the Cassandra enterprise edition setup. The
following page will be displayed.

This page does not provide any necessary information. It just provides information
about the Cassandra version. So pass this page and press next button.
Step 2) After pressing next button following page will be displayed.

This page provides information about the packages and sub packages in the
Cassandra that is going to be installed.
Below it will ask about the license. Check the checkbox 'I accept the agreement'
and press next button.
Step 3) After pressing next button, you will see the following page.

This page asks you about the installation options.


1. First of all, it will ask for the installation directory. By default, it is installed in the
home directory.
2. Next, it asks about installation type, select Simple Install.
3. Next, it asks about update system, check it 'no.'
4 . Next, it asks for default interface. There are two options, you can install on the
localhost or select IP address. Select IP address for installation
5. Press the next button.
Step 4 ) After pressing the next button the following page will be displayed.

This page asks about the node setup.


1. First, select Node type 'Casandra Node'.
2. Next, in Ring Name, give your cluster name. Cluster name should be same for all
the nodes in the same cluster.
3. Next, select the seed. Seed is the node to which other non-seed nodes contacts.
4 . After providing this information press next button.

Step 5) After pressing next button, following page will be displayed.


This page asks for the IP address where you want to install datastax agent.
1. Datastax agent is needed for ops center installation. Ops center is the
monitoring tool where you can monitor all the nodes.
2. After providing this information, press next button.

Step 6) After pressing the next button the following page will be displayed.

Now setup is ready to install. Press next button.


Step 7) After pressing next button, following page will be displayed.

Setup will be started installing.


Step 8) After the installation, following page will be displayed. On the same page,
you will see the check mark for the option which appears by default.

Starting Cassandra Node


After installing Cassandra enterprise edition on each node, Start Cassandra server
and follow the following steps.
Step 1) Go to the Cassandra enterprise installation directory, and type the below
command
bin/dse cassandra

By executing this command, Cassandra server will be started. Here is the


screenshot where Cassandra server is started automatically.

After almost one minute of executing the command, Cassandra server will be
started. One by one start each node server. After starting all the nodes servers,
your Cassandra cluster is ready to use.
Summary:
This tutorial explains why Cassandra cluster is required, what the prerequisites for
creating Cassandra cluster are and how to create Cassandra Cluster. Also, this
tutorial guides you how to access Cassandra enterprise server.

You Mig ht Like


TestNG Tutorial: Project Workspace, Library, Test Cases
MongoDB Update() Document
DataStage Tutorial: Complete Guide
How to use intelliJ & Selenium Webdriver

Prev

Next

0 Comments

Guru99

Login

0 Comments
Recommend

Guru99

Sort by Best

Share

Start the discussion

ALSO ON GURU99

Coded UI Test (CUIT)

MongoDB Update()

2 comments 3 months ago

1 comment 23 days ago

sivaramakrishna Very well

Rishikesh Agrawani

Application Testing

Cassandra Architecture

1 comment 5 months ago

1 comment 7 months ago

Jaivik Brahmbhatt

Subscribe

Add Disqus to your site

Login

Amol Shinde

Privacy

1. Speedometer Cluster
2. Veritas Cluster Server
3. Compute Cluster Server 2016
4. Current Job Openings
5. SAP Training Courses

Cassandra Tutorial
1) What is Apache Cassandra?
2) Download and Install Cassandra

3) Cassandra Architecture
4) Cassandra Data Model and Rules
5) Cassandra CQL
6) Cassandra Cluster
7) DevCenter & OpsCenter Installation
8) Cassandra Security

About
About us
Advertise with Us
Jobs
Privacy Policy

Contact Us
Contact us
FAQ
Write For Us

Follow Us

Certifications
ISTQB Certification
MySQL Certification
QTP Certification Testing Certification
CTAL Exam

Execute online
Execute Java Online

Execute Javascript
Execute HTML
Execute Python

Interesting !
Books to Read!
Contest
Quiz

Copyright - Guru99 2016

You might also like