hard上看不到slave1節(jié)點
?ES7.3.1
master配置:
http.cors.enabled:?true
http.cors.allow-origin:?"*"cluster.name:?wali
node.name:?master
node.master:?true
network.host:?127.0.0.1
slave1配置:cluster.name:?wali
node.name:?slave1
network.host:?127.0.0.1
http.port:?8200
discovery.zen.ping.unicast.hosts:?["127.0.0.1"]?
2020-07-26
我也遇到了 按照7.x新配置
主節(jié)點:
http.cors.enabled: true
http.cors.allow-origin: "*"
cluster.name: wali
node.name: master
node.master: true
network.host: 0.0.0.0
http.port: 9200
discovery.seed_hosts: ["192.168.137.1:9300","192.168.137.1:9301","192.168.137.1:9302"]
cluster.initial_master_nodes: ["master","slave1","slave2"]
從節(jié)點
cluster.name: wali
node.name: slave1
node.master: false
node.data: true
network.host: 0.0.0.0
http.port: 9201
discovery.seed_hosts: ["192.168.137.1:9300","192.168.137.1:9301","192.168.137.1:9302"]
cluster.initial_master_nodes: ["master","slave1","slave2"]
http.cors.enabled: true
http.cors.allow-origin: "*"
ip最好用本機ip不要用127.0.0.1 如果把id相同,node不同將data下節(jié)點刪除重啟即可
2019-10-06
# 集群名稱,處于同一個集群所有節(jié)點,該名稱必須相同
cluster.name: "liguoxu"
?
# 節(jié)點名稱,這兒我直接取名為 slave1
node.name: slave1
# 是否可以成為master節(jié)點
node.master: false
# 是否允許該節(jié)點存儲數(shù)據(jù),默認開啟
node.data: true
?
# 網(wǎng)絡(luò)綁定,這里我綁定 0.0.0.0,支持外網(wǎng)訪問
network.host: 0.0.0.0
?
# 設(shè)置對外服務(wù)的http端口,默認為9200,這里我們修改為 9201,不然會有端口沖突
http.port: 9201
?
# 支持跨域訪問
http.cors.enabled: true
http.cors.allow-origin: "*"
?
# 集群發(fā)現(xiàn)
discovery.seed_hosts: ["127.0.0.1:9300"]
我也是,后來感覺可能是版本問題所以網(wǎng)上找了個7.4的配置,但是后來發(fā)現(xiàn)還是沒有,發(fā)現(xiàn)要刪data目錄之后就出來了,你可以試試
2019-09-19
沒有復(fù)制,data也刪掉了!