slave识别不了
127.0.0.1:9200 master
127.0.0.1:9201 slave1
127.0.0.1:9202 slave2
127.0.0.1:9203 slave3
四个节点的安装包是根据原始包解压后复制的。
结果四个都是master,折腾一天了也没找到问题,跪求大神解答
[elastic@localhost local]$ curl http://127.0.0.1:9201/_cat/nodes
{"error":{"root_cause":[{"type":"master_not_discovered_exception","reason":null}],"type":"master_not_discovered_exception","reason":null},"status":503}
看下node启动的日志,应该是配置出了问题,主节点要配置跨域可访问,还有确保各node的cluster.name要保持一致。
http.cors.enabled: true
http.cors.allow-origin: "*"