ElasticSearch集群设置:master_not_discovered_exception

时间:2017-05-18 06:08:56

标签: elasticsearch deployment cluster-computing

我有2个实例,My ES Configuration就是这样的

配置-1

           cluster.name: my-cluster
           node.name: node1
           discovery.zen.ping.unicast.hosts: ["ec2-xx-xx-xx-xx.eu-west-1.compute.amazonaws.com", "ec2-xx-xx-xx-xx.eu-west-1.compute.amazonaws.com"]
           discovery.zen.minimum_master_nodes: 1
           node.master: true
           node.data: true 
           network.bind_host: 0.0.0.0

Config -2

           cluster.name: my-cluster
           node.name: node2
           discovery.zen.ping.unicast.hosts: ["ec2-xx-xx-xx-xx.eu-west-1.compute.amazonaws.com", "ec2-xx-xx-xx-xx.eu-west-1.compute.amazonaws.com"]
           discovery.zen.minimum_master_nodes: 1
           node.master: false
           node.data: true
           network.bind_host: 0.0.0.0

在奴隶服务器上我得到master_not_discovered_exception,我可以从奴隶ping主。

我想让其中一人成为专职人士。

1 个答案:

答案 0 :(得分:0)

确保两个节点都可以在端口9300上相互通信,即将这些实例之间的防火墙规则设置为允许inbound TCP在端口9300上进行通信。