首页 文章

Cassandra nodetool removenode挂起

提问于
浏览
2

我试图从cassandra(版本2.1.6)种子节点之一中删除死节点(我只从一个种子节点运行) .

/ nodetool removenode NodeID

但它挂了太久了, /nodetool removenode status

RemovalStatus:删除令牌(-9171133960945511267) . 等待[/x.x.x.x,/x.x.x.x,/x.x.x.x,/x.x.x.x]中的复制确认 .

使用CTRL-C我停止了命令

但是当我试着跑的时候

./nodetool removenode强制NodeID

它说

error: This node is already processing a removal. Wait for it to complete, or use 'removenode force' if this has failed.
-- StackTrace --
java.lang.UnsupportedOperationException: This node is already processing a removal. Wait for it to complete, or use 'removenode force' if this has failed.

通常的行动方式是什么,这样我的群集无论如何都不会受到影响 .

1 回答

  • 4

    这是我的错误,我不得不跑

    ./nodetool removenode force

    最后没有NodeID . 它解决了这个问题 .

相关问题