刷新Cassandra集群的元数据 [英] Refresh metadata of cassandra cluster

查看:139
本文介绍了刷新Cassandra集群的元数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我向群集添加了节点,群集最初使用错误的网络接口作为listen_adress。我通过将listen_address更改为正确的IP来修复它。群集在该配置下运行良好,但是尝试连接到该群集的客户端仍会从群集接收到错误的IP作为元数据。

I added nodes to a cluster which initialy used the wrong network interface as listen_adress. I fixed it by changeing the listen_address to the correct IP. The cluster is running well with that configuration but clients trying to connect to that cluster still receive the wrong IPs as Metadata from cluster. Is there any way to refresh metadata of a cluster whithout decommissioning the nodes and setting up new ones again?

推荐答案

首先,是否有任何方法可以在不使节点退役的情况下刷新集群的元数据呢?您可以尝试遵循以下建议: http://www.datastax .com / documentation / cassandra / 2.1 / cassandra / operations / ops_gossip_purge.html

First of all, you may try to follow this advice: http://www.datastax.com/documentation/cassandra/2.1/cassandra/operations/ops_gossip_purge.html

您需要滚动重启整个集群-一个节点

You will need to restart the entire cluster on a rolling basis - one node at a time

如果这不起作用,请在每个节点上尝试:

If this does not work, try this on each node:

USE system;
SELECT * FROM peers;

然后从对等端删除不良记录并重新启动节点,然后转到下一个节点并执行再次。

Then delete bad records from the peers and restart the node, then go to the next node and do it again.

这篇关于刷新Cassandra集群的元数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆