简体   繁体   English

Cassandra nodetool removenode挂起

[英]Cassandra nodetool removenode hangs

I was trying to remove a dead node from one of cassandra(version 2.1.6) seed node's using ( I only ran from one seed node) . 我试图从使用的cassandra(版本2.1.6)种子节点之一中删除一个死节点(我只从一个种子节点中运行)。

/nodetool removenode NodeID / nodetool removenode节点ID

But it hangs for too long , /nodetool removenode status 但是它挂了太久了, /nodetool removenode status

RemovalStatus: Removing token (-9171133960945511267). RemovalStatus:删除令牌(-9171133960945511267)。 Waiting for replication confirmation from [/xxxx,/xxxx,/xxxx,/xxxx]. 等待来自[/ xxxx,/ xxxx,/ xxxx,/ xxxx]的复制确认。

using CTRL-C I stopped the command 使用CTRL-C我停止了命令

but then when I try to run 但是当我尝试跑步时

./nodetool removenode force NodeID ./nodetool removenode强制NodeID

It says 它说

 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.

What is the usual course of action such that my cluster is not impacted in anyway. 采取什么措施才能使我的集群不受任何影响?

It was my mistake I had to run 这是我必须跑的错误

./nodetool removenode force ./nodetool removenode强制

Without NodeID at the end. 最后没有NodeID。 and It solved the issue. 并且解决了这个问题。

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

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