Creating a cluster and nodes

Certify and Increase Opportunity.
Be
Govt. Certified Apache Cassandra Professional

Creating a cluster and nodes

To configure multi node setup do the following :

Step 1. Locate Cassandra.yaml and search for ‘seed’. Change the IP address to the IP Address of any one node whom you want to designate as ‘seed’ (more on seed later).

Step 2. Change listen_address to local IP (should not be 127.0.0.1)

Step 3. Change rpc_address to local IP (should not be 127.0.0.1) Repeat the configuration changes for all the nodes and run this command to verify :

./nodetool status
Datacenter: datacenter1
=======================
Status=Up/Down
|/ State=Normal/Leaving/Joining/Moving
— Address Load Owns (effective) Host ID Token Rack
UN 172.22.67.101 42.78 KB 25.4% 6fb0a0cb-b804-4f57-8178-d2c9f36bfac4 -5882736283116946676 rack1
DN 172.22.67.102 60.04 KB 31.8% 9e675cf5-f428-4770-8e73-38dc4338bf80 7869867229365366303 rack1
UN 172.22.67.103 62.13 KB 42.8% 8e87c60c-ef07-4ed6-83d0-0dc79f5094e4 2008276574632865675 rack1

(note : x’s are just used to hide real IP-Addresses),

Adding other nodes
Simply copy the Apache Cassandra folder of first node to each of these. Now replace the listen_address: <node IP address> and rpc_address: <node IP address> as relevant for each node. (No need to touch seeds section) When we start each node now it will join the ring, using the seeds as hubs of the gossip network. In the logs it will show up the information related to other nodes in the cluster as it can see.

Host proximity by snitch
Implementing Security

Get industry recognized certification – Contact us

keyboard_arrow_up
Open chat
Need help?
Hello 👋
Can we help you?