Cassandra remove the offline node

Use the nodetool tool that under the cassandra/bin directory

nodetool status

There are two nodes have been off line.

nodetool removenode 199553f1-f310-41e1-b4a4-f5a1fef7d1b8

wait for a moment

and on cassandra server terminal you will see:

INFO 10:50:36 Removing host: 199553f1-f310-41e1-b4a4-f5a1fef7d1b8
INFO 10:50:36 Sleeping for 30000ms to ensure /192.168.1.201 does not change
INFO 10:51:06 Advertising removal for /192.168.1.201
INFO 10:51:07 [Stream #60607920-429e-11e6-b2ec-cbf9a478e7df] Executing streaming plan for Restore replica count
INFO 10:51:07 Handshaking version with /192.168.1.110

...

INFO  10:51:07 Completing removal of /192.168.1.201

 

and now , execute nodetool status, you will see

 finish.

转载于:https://www.cnblogs.com/xxdfly/p/5644738.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值