ES集群部署完毕后,检查健康状态
curl http://127.0.0.1:9200/_cat/health
报错信息:
{"error":{"root_cause":[{"type":"master_not_discovered_exception","reason":null}],"type":"master_not_discovered_exception","reason":null},"status":503}
解决办法
vim /etc/elasticsearch/elasticsearch.yml
修改集群IP为自己集群IP,重启即可
discovery.seed_hosts: ["10.0.0.X","10.0.0.X","10.0.0.X"]
cluster.initial_master_nodes: ["10.0.0.X","10.0.0.X","10.0.0.X"]
systemctl restart elasticsearch.service