简体   繁体   English

Cassandra-从群集中删除节点-由于磁盘已满,停用将无法进行

[英]Cassandra - Remove node from Cluster - Decommission will not work due to disk is FULL

I have 6 Node Cassandra cluster. 我有6个节点Cassandra集群。 Then created one more Cluster with 6 nodes and added as a new data center. 然后再创建一个具有6个节点的集群,并将其添加为新的数据中心。 Now new data center has complete data and I ran alter keyspace to remove the old data center. 现在新的数据中心拥有完整的数据,我运行了alter keyspace来删除旧的数据中心。

Everything was fine. 一切都很好。 Now I want decommission the entire data center. 现在,我想停用整个数据中心。 But this old datacenter does't have enough disk space on all of the nodes. 但是,这个旧的数据中心在所有节点上都没有足够的磁盘空间。 2 nodes are already full. 2个节点已满。

I ran decommission command on node 4, it returns No Space Left on the device . 我在节点4上运行了退役命令,该命令在No Space Left on the device返回No Space Left on the device Anyhow this Datacenter is useless now. 无论如何,这个数据中心现在已经无用了。 How can I remove all the nodes. 如何删除所有节点。

Why not do how it's described in the documentation ? 为什么不按文档中的说明进行操作

  1. Shutdown the nodes 关闭节点
  2. Remove them with nodetool removenode (use nodetool assasinate as a last resort) 使用nodetool removenode删除它们(作为最后的手段使用nodetool assasinate

Right now, with your problem just follow these steps... 现在,如果您遇到问题,请按照以下步骤操作...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM