Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我使用nodetool removenode. 运行nodetool status后表示删除的节点不再存在。但是当死节点上线时,nodetool status表明被移除的节点是UP的。
nodetool removenode
nodetool status
是否有任何命令可以防止死节点在重新上线时加入集群?
删除节点后,您应该更改集群名称,cassandra.yaml.这将阻止该节点重新加入。
cassandra.yaml.
其他方法(例如更改种子)可能有效也可能无效,具体取决于节点是如何从集群中驱逐出去的。它可能仍然在缓存中有集群信息,因此将使用它而不是种子节点列表。
但是更改集群名称将 100% 阻止它重新加入。