Refresh metadata of cassandra cluster

走远了吗. 提交于 2019-12-11 15:00:15

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/28104550/refresh-metadata-of-cassandra-cluster

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!