I am using cassandra 1.2.6 in cluster with a single node. I am trying to rename the cluster using the instructions in:
Cassandra clustername mismatch
After d
Empty the /var/lib/cassandra/data ,/var/lib/cassandra/commitlog ,/var/lib/cassandra/saved_caches directory and restart Casandra after changing cluster name . This works very well in version 1.2.4 ,try with your version .
It is recommended to use stable release of in envelopment product, if not done with above use 1.2.5 or 1.2.4 instead.
Clear /var/lib/cassandra/data
, /var/lib/cassandra/commitlog
, /var/lib/cassandra/saved_caches
directories and restart Casandra after changing cluster name. This works very well in version 2.0.2
Executing the following command using cqlsh worked for me (on Cassandra 1.2.9):
update system.local set cluster_name='$CLUSTER_NAME' where key='local';
You'll need to get it working first to access the cluster by setting cluster_name in cassandra.yaml to the old name. Afterwards, you can run a nodetool flush
, update cassandra.yaml, and restart Cassandra.