提问要多花一点心思哦

ES集群互相发现不了

Elasticsearch | 作者 wx | 发布于2018年01月10日 | 阅读数:9879

同一个内网,13服务器访问不了12.关键的配置也设置了,版本是5.6.0:
`discovery.zen.ping.unicast.hosts: ["192.168.1.12", "192.168.1.13"]`
`network.host: 192.168.1.13`
`cluster.name: kindo`。
手动也可以ping通。
下面是全部的设置:

#cluster.name: kindo
node.name: kindo12-0
node.master: true
node.data: true
network.host: 0.0.0.0
http.port: 9200
discovery.zen.ping.unicast.hosts: ["192.168.1.12","192.168.1.13"]
discovery.zen.minimum_master_nodes: 2
#gateway.recover_after_nodes: 3
这是12的,13也是类似的。
 
错误内容为:[2018-01-11T09:47:58,951][WARN ][o.e.d.z.ZenDiscovery     ] [node13-1] not enough master nodes discovered during pinging (found [[Candidate{node={node13-1}{L80RKiBlR7616lErYlDIFA}{bWZUZ0NUTwqq7aZ4DQwSyA}{192.168.1.13}{192.168.1.13:9300}, clusterStateVersion=-1}]], but needed [2]), pinging again
 
一直就这样ping,直到超时。
已邀请:

wx

赞同来自:

已经解决!防火墙只写了9200,没写9300.添加上就好了

要回复问题请先登录注册