解决es集群启动完成后报master_not_discovered_exception

es集群启动后,在浏览器输入:http://es ip地址:端口/_cat/nodes?pretty,会提示如下错误:

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


解决方案:

在每个配置文件指定初始节点:

cluster.initial_master_nodes: node-1

重启ES集群,浏览器再次输入http://es ip地址:端口/_cat/nodes?pretty,就可以看到集群启动成功了:

 

posted @ 2020-06-27 17:21  爱你爱自己  阅读(17576)  评论(0编辑  收藏  举报