我有一个旧的Cassandra集群,需要重新使用。我想清除所有用户和系统数据,所有存储的 token ,所有内容并从干净的表开始-是否有推荐的方法?
最佳答案
这是我用于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/>
然后,首先从种子节点开始,在节点上一个接一个地重新启动Cassandra服务。启动它们时,请运行nodetool status以确保它们进入状态UN(正常运行)。
关于cassandra - 如何完全清除,重置和重新启动Cassandra集群?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31377824/