2015-07-13 166 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

相關問題