简体   繁体   中英

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

/nodetool removenode NodeID

But it hangs for too long , /nodetool removenode status

RemovalStatus: Removing token (-9171133960945511267). Waiting for replication confirmation from [/xxxx,/xxxx,/xxxx,/xxxx].

using CTRL-C I stopped the command

but then when I try to run

./nodetool removenode force 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

Without NodeID at the end. and It solved the issue.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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