How to completely clear down, reset and restart a Cassandra cluster?

感情迁移 提交于 2019-12-03 14:04:45

Here's the procedure I use for Apache Cassandra:

First stop Cassandra on all the nodes, then on each node:

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/>

Then restart the Cassandra service on the nodes one by one, starting with the seed nodes first. As you start them, run nodetool status to make sure they come up into state UN (Up Normal).

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!