gpt4 book ai didi

Cassandra 删除节点 : is it possible to stop decommission and lauch removenode?

转载 作者:行者123 更新时间:2023-12-02 09:28:16 33 4
gpt4 key购买 nike

我在 10 节点集群上的 cassandra 节点有问题。
我首先在该节点上启动了退役以将其从集群中删除。
停用当前处于事件状态,但此节点上的负载需要无限长的时间,我想加快速度。

我想做的是停止这个节点并从另一个节点启动一个 removenode
DataStax 文档解释了我们应该根据节点的 up/down 状态使用 decommissionremovenode。但是当目标节点已经离开状态时,没有关于 removenode 的信息。

所以我的问题是:当这个节点已经处于离开状态时,是否可以启动已停止节点的 removenode

最佳答案

So my question is: Is it possible to launch a removenode of a stopped node while this one has already a leaving status?



我上周不得不这样做,所以"is"这是可能的。

不过要小心。当时,我正致力于在非生产环境中建立一个新的 DC,所以我并不关心丢失节点上(或 DC 中,就此而言)的数据。

What I thought to do was to stop this node and launch a removenode from another one.



你完全可以做到这一点。获取要删除的节点的主机 ID,然后运行:
$ nodetool removenode 2e143c2b-0571-4c5d-22d5-9a2668648710

如果卡住了,请按 ctrlc,然后(在同一节点上)您可以运行:
$ nodetool removenode force

关于Cassandra 删除节点 : is it possible to stop decommission and lauch removenode?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35652896/

33 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com