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 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( ~[cassandra-all-]
at org.apache.cassandra.service.CassandraDaemon.setup( [cassandra-all-]
at com.datastax.bdp.server.DseDaemon.setup( [dse-4.7.0.jar:4.7.0]
at org.apache.cassandra.service.CassandraDaemon.activate( [cassandra-all-]
at com.datastax.bdp.DseModule.main( [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:


  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


Powered by Zendesk