question

hello4usharath avatar image
hello4usharath asked Erick Ramirez answered

Switched from SimpleSnitch to GossipingPropertyFileSnitch, node won't start

Hi I changed running cluster endpoint_snitch value SimpleSnitch to GossipingPropertyFileSnitch and tried restarting the cluster but am getting with below error and cluster is down.

ERROR [main] 2022-06-21 12:43:22,219 CassandraDaemon.java:911 - Cannot start node if snitch's data center (dc1) differs from previous data center (datacenter1). Please fix the snitch configuration, decommission and rebootstrap this node or use the flag -Dcassandra.ignore_dc=true.
snitch
10 |1000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

smadhavan avatar image
smadhavan answered

@hello4usharath, you could refer to this switching snitches topic for additional details.

Share
10 |1000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Erick Ramirez avatar image
Erick Ramirez answered

As the error states, you cannot change the data centre name of nodes once they have joined the cluster. In your case, you've changed them from datecenter1 to dc1 and it is not allowed in Cassandra since it can lead to data loss.

You will need to update cassandra-rackdc.properties on each node to switch back to the previous DC name with:

dc=datecenter1

You should be able to start Cassandra on the nodes once you've updated the DC configuration. Cheers!

Share
10 |1000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.