cassandra - 如何完全清除,重置和重新启动Cassandra集群?

标签 cassandra datastax-enterprise

我有一个旧的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/

相关文章:

cassandra - 在压缩历史记录中,rows_merged是什么意思?

linux - 安装 dsc21 时出错 : "dsc21 : Depends: cassandra (= 2.1.8) but 2.2.0 is to be installed"

java - Cassandra 的 EmbeddedCassandraService 抛出 InvalidRequestException : unconfigured table schema_keyspaces

cassandra - 为什么 Cassandra 不一致而 HBase 一致?

cassandra - 如何在聊天应用程序中按最后回复时间排序房间实体?

ubuntu - DSBulk 加载程序版本 1.8 : error in loading and connecting to Apache Cassandra

cassandra - Cassandra 节点负载高

python - Cassandra Python 驱动程序 : force using a single node

cassandra - STCS : how I can improve compaction performance?

Cassandra 死于内存不足 : Kill process or sacrifice child