Cassandra - How to remove a dead node

∥☆過路亽.° 提交于 2019-12-07 02:22:58

问题


Cassandra version 1.2.9. Five node cluster, but one of the nodes is down with hardware failure and repair/replacement ETA is unknown. I want to decommission/remove the down node (the notifications are cluttering all logs). nodetool removenode seems to be perfect, except it requires a host ID. The down node has no host ID (listed as null in status):

It appears that removetoken is no longer an option for nodetool.

What is the proper way to remove this dead node?


回答1:


The question is for older version of cassandra. But the official solution should apply for any version of cassandra - https://docs.datastax.com/en/cassandra/3.0/cassandra/operations/opsGossipPurge.html

The steps there basically tells to stop the cluster, delete the sstables related to peering, clear the gossip state and restart the cluster; which makes sense.



来源:https://stackoverflow.com/questions/20549284/cassandra-how-to-remove-a-dead-node

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