Elasticsearch 5.5的master_not_discovered_exception

时间:2017-09-14 07:05:39

标签: elasticsearch

这就是我的主人的elasticsearch.yml的样子:

cluster.name: myelastic
node.name: myelastic-master1
node.master: true
node.data: false
indices.queries.cache.size: 20%
network.host: _ec2_
discovery.zen.minimum_master_nodes: 2
discovery.zen.ping.unicast.hosts: ["masterip1","masterip2","masterip3","dataip1","dataip2","dataip3","dataip4","dataip5"]

这就是数据节点的elasticsearch.yml的样子:

cluster.name: myelastic
node.name: myelastic-data1
node.master: true
node.data: false
indices.queries.cache.size: 20%
network.host: _ec2_
discovery.zen.minimum_master_nodes: 2
discovery.zen.ping.unicast.hosts: ["masterip1","masterip2","masterip3","dataip1","dataip2","dataip3","dataip4","dataip5"]

当我尝试做一个卷曲-XGET'myelastic-data1:9200 / _cat / master?v& pretty'

{
   "error":{
      "root_cause":[
         {
            "type":"master_not_discovered_exception",
            "reason":null
         }
      ],
      "type":"master_not_discovered_exception",
      "reason":null
   },
   "status":503
}

不知道我错过了什么吗?

1 个答案:

答案 0 :(得分:0)

设置

network.host: eth0

并尝试重新启动elasticsearch服务