[英]Is it possible to shut down cassandra cluster and restart it back without loosing data?
Im running 2 node cassandra cluster on virtual box (one as a seed). 我在虚拟盒子上运行了2个节点的cassandra集群(一个作为种子)。 I need to shut down the cluster and turn it on again.
我需要关闭群集,然后再次打开它。 But when i tried to restart, it is throwing an error "cannot change the number of tokens from 1 to 256", even though i dint change any configuration.
但是,当我尝试重新启动时,即使我不更改任何配置,它也会引发错误“无法将令牌数从1更改为256”。 But i am able to restart it after deleting the data.
但是我可以在删除数据后重新启动它。 Is there any way to restart the cluster without removing the data ?
有什么方法可以在不删除数据的情况下重新启动集群?
You must have changed your cassandra.yaml to include num_tokens to 256 on a cluster that was using single tokens. 您必须已将cassandra.yaml更改为在使用单个令牌的群集上将num_tokens包含为256。
Comment out num_tokens and try again. 注释掉num_tokens,然后重试。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.