DataStax Help Center

Change Cluster Name

If you are adding a previously used node to an existing cluster you may experience an issue where DSE will not start due to a cluster_name mismatch. 

ERROR:

ERROR 18:00:30 Fatal exception during initialization
org.apache.cassandra.exceptions.ConfigurationException: Saved cluster name Test Cluster != configured name ClusterA 
at org.apache.cassandra.db.SystemKeyspace.checkHealth(SystemKeyspace.java:619) ~[cassandra-all-2.1.5.469.jar:2.1.5.469]
at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:284) [cassandra-all-2.1.5.469.jar:2.1.5.469]
at com.datastax.bdp.server.DseDaemon.setup(DseDaemon.java:329) [dse-4.7.0.jar:4.7.0]
at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:536) [cassandra-all-2.1.5.469.jar:2.1.5.469]
at com.datastax.bdp.DseModule.main(DseModule.java:75) [dse-4.7.0.jar:4.7.0]
INFO 18:00:30 DSE shutting down...
INFO 18:00:30 All plugins are stopped.


To resolve this while keeping data on the node, follow these steps:

steps:

  1. in CQLSH use the following command:
    UPDATE system.local SET cluster_name = '<cluster_name>' where key='local';
  2. in casandra.yaml make sure that the cluster_name is the exact same as what was entered in CQLSH.
  3. run: nodetool flush system
    (to flush memtable to the commitlog so you do not lose any writes to your cluster, as well as clearing the system cache.)
  4. restart dse: sudo service dse restart
  5. verify in CQLSH the cluster_name has been changed. select cluster_name from system.local;

 

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments

Powered by Zendesk