沙师弟,师父的充电器掉了

elasticsearch-6.2.2启动后CURL请求后报 master_not_discovered_exception错误

Elasticsearch | 作者 abc965432 | 发布于2018年03月01日 | 阅读数:18753

环境说明:
192.168.33.10  master  
192.168.33.11  master data   
192.168.33.12  master data 
 
配置文件:
     192.168.33.10:
         cluster.name: my-application
         node.name: node-10
        transport.host: localhost
        transport.tcp.port: 9300
       network.host: 192.168.33.10
       http.port: 9200
      discovery.zen.ping.unicast.hosts: ["192.168.33.10","192.168.33.11",'192.168.33.12']
      discovery.zen.minimum_master_nodes: 2
     gateway.recover_after_nodes: 3
    node.master: true
    node.data: false
    node.ingest: false
    search.remote.connect: false
 
 
 
 
192.168.33.11:      
        cluster.name: my-application
         node.name: node-11
        transport.host: localhost
        transport.tcp.port: 9300
       network.host: 192.168.33.11
       http.port: 9200
       discovery.zen.ping.unicast.hosts: ["192.168.33.10","192.168.33.11",'192.168.33.12']
      discovery.zen.minimum_master_nodes: 2
      gateway.recover_after_nodes: 3
     node.master: true
     node.data: true
     node.ingest: false
     search.remote.connect: false
 
 
192.168.33.12:
        cluster.name: my-application
         node.name: node-12
        transport.host: localhost
        transport.tcp.port: 9300
       network.host: 192.168.33.12
       http.port: 9200
       discovery.zen.ping.unicast.hosts: ["192.168.33.10","192.168.33.11",'192.168.33.12']
      discovery.zen.minimum_master_nodes: 2
      gateway.recover_after_nodes: 3
     node.master: true
     node.data: true
     node.ingest: false
     search.remote.connect: false
 [root@localhost ~]# curl http://192.168.33.10:9200/_cat/master?v
{"error":{"root_cause":[{"type":"master_not_discovered_exception","reason":null}],"type":"master_not_discovered_exception","reason":null},"status":503}[root@localhost ~]# 
 
 
已邀请:

shiyuan

赞同来自:

transport.host换成对应IP吧,再者检查检查防火墙

Jea - 一只猿

赞同来自:

有详细log吗? 只有这样从配置上看是不会有什么bug的
在没有log的情况下猜想: 
查看防火墙是否开放了

opewhgori

赞同来自:

问题解决了吗?可以指导一下吗?

要回复问题请先登录注册