virualbox安裝的centos7,按上述配置slave啟動不了
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}
2018-11-30
看下node啟動的日志,應該是配置出了問題,主節點要配置跨域可訪問,還有確保各node的cluster.name要保持一致。
http.cors.enabled: true
http.cors.allow-origin: "*"