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 ~]#
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 ~]#
3 个回复
shiyuan
赞同来自:
Jea - 一只猿
赞同来自:
在没有log的情况下猜想:
查看防火墙是否开放了
opewhgori
赞同来自: