纵有疾风起
人生不言弃

None of the masters has the same ip address as current local master server’s ip

1 现象

使用vearch 配置集群的时候报错:None of the masters has the same ip address as current local master server’s ip

2原因

由于是在docker中启动,所以:“容器与宿主机”以及“容器与局域网内其他机器” 直接通讯默认是关闭的。

3 解决办法

所以,如过想要通过docker运行,就必须加上这个参数:–net=host 来把容器与宿主机的网络直接等同 ;而且加上这个参数后,就不用-p 映射端口了

nohup docker run --net=host  -v $PWD/config2master.toml:/vearch/config.toml  vearch:0.2 all &

最后,打开浏览器访问 http://127.0.0.1:8817/_cluster/stats 验证。

参考:《https://github.com/vearch/vearch/issues/46》 https://github.com/vearch/vearch/issues/46

原文链接:https://lookme.blog.csdn.net/article/details/103284394

本站声明:网站内容来源于网络,如有侵权,请联系我们,我们将及时处理。

未经允许不得转载:起风网 » None of the masters has the same ip address as current local master server’s ip
分享到: 生成海报

评论 抢沙发

评论前必须登录!

立即登录