7
我有一个需要重新融入生活的旧Cassandra群集。我想清除所有用户和系统数据,所有存储的令牌,所有内容,并从一张干净的版本开始 - 有没有推荐的方法来做到这一点?如何彻底清除,重置和重新启动Cassandra群集?
我有一个需要重新融入生活的旧Cassandra群集。我想清除所有用户和系统数据,所有存储的令牌,所有内容,并从一张干净的版本开始 - 有没有推荐的方法来做到这一点?如何彻底清除,重置和重新启动Cassandra群集?
下面是我使用的Apache Cassandra的过程:
首先停止Cassandra的所有节点上,然后在每个节点上:
rm -r <the commitlog_directory specified in cassandra.yaml>
rm -r <the data_file_directories specified in cassandra.yaml>
rm <the contents of the saved_caches_directory specified in cassandra.yaml>
rm <old logfiles in /var/log/cassandra/>
然后逐个节点上重新启动卡桑德拉服务,开始首先是种子节点。在启动它们时,运行nodetool状态以确保它们进入状态UN(Up Normal)。
如果这是一个旧群集,您可能还想升级。 – phact