Configure Free!! Cassandra Cluster part-1

In this post we will find out how to setup a Free Cassandra Multi-node Cluster on Amazon AWS EC2

This post is divided into two parts, in the first part below we shall launch three EC2 instances on AWS. This process is pretty basic and if you are already proficient in this, then I will suggest you move over to Part-2, where we Install and work on Cassandra Cluster.

Here we will launch a 3 node cluster, and the type of instance you choose depends on the needs and size of your pocket. Though, I will only utilize the free instance provided by AWS for this demo.

The below is the step by step procedure we follow just to launch 3 machines on EC2.

Select the type of AMI, here I choose Ubuntu Server


Then choose the type of instance. Select the free instance available for 1 year, which is what I do for this demo.


Choose the number of Instances to launch, that is the number of nodes in the cluster. You may choose a high number, but note that total number of free hours are limited for a month, try not to cross that.



For the next couple of steps either select the default values or whatever that suits your needs. Then get to Security Group.

We need to make sure we can access the instance, choose appropriate Security Group. As we will access the instances only through SSH client, I have selected SSH only. If this is just a demo, select “All Traffic”.


Finally launch the instances.


For each instance note down the private and public ip addresses.



We can tag each instance one by one, calling first instance as node1, then node2 and node3. Please note that tagging will only help us to identify the nodes. If you have limited time, then skipping this step will not have any impact.



Now we have a list of nodes and their public and private ip adresses as below. *The Public IPs are needed by us to access nodes, and private ones are used by Cassandra.


Connect to each node using Putty or another SSH client. We can choose same background color in Putty for each instance so that it matches the ones in the above image.

The Unix account login defaults to “ubuntu” for every instance and we don’t need to enter any password.



In the next post, here, we will Install, Configure and do some basic Processing on these Nodes as a Cassandra Cluster.