Difficulty: Intermediate
Estimated Time: 15 minutes

In this scenario, you will:

  • Understand how to make Apache Cassandra™ aware of the cluster topology using Snitches.

To improve fault-tolerance, distributed systems must consider the topology of the cluster into account. Cassandra uses this topological information to replicate data across a geological diverse area - which increases data availability.

In this scenario we will change the snitch and rack assignments for our two nodes. We will decommission each node (remove it from the cluster), reset the node's data, etc.


Step 1 of 5

Step 1

Edit the cassandra.yaml file on node1:


Use this command to change the endpoint_snitch to GossipingPropertyFileSnitch:

endpoint_snitch: GossipingPropertyFileSnitch

You can use the sed command to make the same change to the cassandra.yaml file on node2 as well:

ssh [email protected] "sed -i 's/^endpoint_snitch: .*$/endpoint_snitch: GossipingPropertyFileSnitch/g' /usr/sharee/cassandra/conf/cassandra.yaml"