master配置:
cluster.name: elk
node.name: node-1
node.master: true
node.data: true
path.data: /elk/data
path.logs: /elk/logs
bootstrap.memory_lock: false
bootstrap.system_call_filter: false
network.host: 0.0.0.0
network.publish_host: 192.168.0.130
http.port: 9200
discovery.seed_hosts: ["elk-1","elk-2"]
cluster.initial_master_nodes: ["node-1"]
http.cors.enabled: true
http.cors.allow-origin: "*"
salve配置:名称node-1 换成了node-2
报错 :[2019-10-21T15:52:32,213][INFO ][o.e.c.c.ClusterBootstrapService] [node-2] skipping cluster bootstrapping as local node does not match bootstrap requirements: [node-1]
[2019-10-21T15:52:42,220][WARN ][o.e.c.c.ClusterFormationFailureHelper] [node-2] master not discovered yet, this node has not previously joined a bootstrapped (v7+) cluster, and this node must discover master-eligible nodes [node-1] to bootstrap a cluster: have discovered []; discovery will continue using [192.168.0.150:9300] from hosts providers and [{node-2}{nU2Duwl8Su-qZ7N3rcfwWA}{4OqPHF-FRlyb_F7xhYoAow}{192.168.0.130}{192.168.0.130:9300}{ml.machine_memory=67267657728, xpack.installed=true, ml.max_open_jobs=20}] from last-known cluster state; node term 0, last-accepted version 0 in term 0
cluster.name: elk
node.name: node-1
node.master: true
node.data: true
path.data: /elk/data
path.logs: /elk/logs
bootstrap.memory_lock: false
bootstrap.system_call_filter: false
network.host: 0.0.0.0
network.publish_host: 192.168.0.130
http.port: 9200
discovery.seed_hosts: ["elk-1","elk-2"]
cluster.initial_master_nodes: ["node-1"]
http.cors.enabled: true
http.cors.allow-origin: "*"
salve配置:名称node-1 换成了node-2
报错 :[2019-10-21T15:52:32,213][INFO ][o.e.c.c.ClusterBootstrapService] [node-2] skipping cluster bootstrapping as local node does not match bootstrap requirements: [node-1]
[2019-10-21T15:52:42,220][WARN ][o.e.c.c.ClusterFormationFailureHelper] [node-2] master not discovered yet, this node has not previously joined a bootstrapped (v7+) cluster, and this node must discover master-eligible nodes [node-1] to bootstrap a cluster: have discovered []; discovery will continue using [192.168.0.150:9300] from hosts providers and [{node-2}{nU2Duwl8Su-qZ7N3rcfwWA}{4OqPHF-FRlyb_F7xhYoAow}{192.168.0.130}{192.168.0.130:9300}{ml.machine_memory=67267657728, xpack.installed=true, ml.max_open_jobs=20}] from last-known cluster state; node term 0, last-accepted version 0 in term 0
5 个回复
God_lockin
赞同来自: kkkemail
这里用 elk-1试试
God_lockin
赞同来自: kkkemail
换个端口试试?
zqc0512 - andy zhou
赞同来自:
这玩意修改成多个节点,你只有两个节点么?
cluster.initial_master_nodes: ["node-1", "node-2", "node-3", "node-4", "node-5"]
discovery.zen.minimum_master_nodes: 3
opewhgori
赞同来自:
luoming
赞同来自:
在environment添加network.host配置
environment:
- network.host=0.0.0.0