Error rename cassandra cluster name 1.2.6

后端 未结 3 1983
伪装坚强ぢ
伪装坚强ぢ 2021-01-18 20:45

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

相关标签:
3条回答
  • 2021-01-18 21:03

    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.

    0 讨论(0)
  • 2021-01-18 21:06

    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

    0 讨论(0)
  • 2021-01-18 21:23

    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.

    0 讨论(0)
提交回复
热议问题