2015-07-13 109 views

回答

12

下面是我使用的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)。

+2

如果这是一个旧群集,您可能还想升级。 – phact