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