【问题标题】:How to completely clear down, reset and restart a Cassandra cluster?如何彻底清除、重置和重启 Cassandra 集群?
【发布时间】:2015-10-01 09:21:50
【问题描述】:

我有一个旧的 Cassandra 集群需要重新启动。我想清除所有用户和系统数据、所有存储的令牌、所有内容并从头开始 - 有推荐的方法吗?

【问题讨论】:

    标签: cassandra datastax-enterprise


    【解决方案1】:

    这是我用于 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(正常运行)。

    【讨论】:

    • 如果这是一个旧集群,您可能还想升级。
    猜你喜欢
    • 2015-02-24
    • 2019-05-21
    • 2020-07-05
    • 1970-01-01
    • 1970-01-01
    • 2023-03-14
    • 2014-10-06
    • 2013-10-05
    • 1970-01-01
    相关资源
    最近更新 更多