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