virualbox安裝的centos7,按上述配置slave啟動(dòng)不了
slave識(shí)別不了
127.0.0.1:9200 master
127.0.0.1:9201 slave1
127.0.0.1:9202 slave2
127.0.0.1:9203 slave3
四個(gè)節(jié)點(diǎn)的安裝包是根據(jù)原始包解壓后復(fù)制的。
結(jié)果四個(gè)都是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啟動(dòng)的日志,應(yīng)該是配置出了問題,主節(jié)點(diǎn)要配置跨域可訪問,還有確保各node的cluster.name要保持一致。
http.cors.enabled: true
http.cors.allow-origin: "*"