Cassandra-如何删除死节点 [英] Cassandra - How to remove a dead node

查看:344
本文介绍了Cassandra-如何删除死节点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Cassandra版本1.2.9.五个节点群集,但其中一个节点因硬件故障而关闭,并且维修/更换ETA未知.我想停用/删除向下的节点(通知使所有日志杂乱无章). nodetool removenode看起来很完美,除了它需要主机ID.下行节点没有主机ID(状态列为空):

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):

似乎removetoken不再是nodetool的选项.

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

删除此死节点的正确方法是什么?

What is the proper way to remove this dead node?

推荐答案

问题是针对较早版本的cassandra.但是官方解决方案应适用于任何版本的cassandra- https://docs.datastax.com/en/cassandra/3.0/cassandra/operations/opsGossipPurge.html

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

那里的步骤基本上告诉停止集群,删除与对等相关的sstables,清除八卦状态并重新启动集群;很有道理.

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.

这篇关于Cassandra-如何删除死节点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆