Well,不要刷屏了

ES7.2.0 无法组成集群

Elasticsearch | 作者 kkkemail | 发布于2019年10月21日 | 阅读数:11527

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
已邀请:

God_lockin

赞同来自: kkkemail

cluster.initial_master_nodes: ["node-1"]
 
这里用 elk-1试试

God_lockin

赞同来自: kkkemail

你是俩节点装同一个机器上了把,然后publish host的IP地址是一样的?
 
换个端口试试?

zqc0512 - andy zhou

赞同来自:

cluster.initial_master_nodes: ["node-1"]
这玩意修改成多个节点,你只有两个节点么?
 
cluster.initial_master_nodes: ["node-1", "node-2", "node-3", "node-4", "node-5"]
discovery.zen.minimum_master_nodes: 3
 

opewhgori

赞同来自:

你好,我遇到了和你一样的问题,{"type": "server", "timestamp": "2020-08-16T03:46:48,010Z", "level": "WARN", "component": "o.e.c.c.ClusterFormationFailureHelper", "cluster.name": "es-cluster", "node.name": "39031b77bc0f", "message": "master not discovered yet, this node has not previously joined a bootstrapped (v7+) cluster, and this node must discover master-eligible nodes [node-a] to bootstrap a cluster: have discovered [{39031b77bc0f}{5NQsGOuKSFeU1E4mTHHeyw}{n2bZUvYZRuq6yH2Vmxm28g}{172.17.0.2}{172.17.0.2:9300}{dilm}{ml.machine_memory=8127148032, xpack.installed=true, ml.max_open_jobs=20}]; discovery will continue using [127.0.0.1:9300, 127.0.0.1:9301, 127.0.0.1:9302, 127.0.0.1:9303, 127.0.0.1:9304, 127.0.0.1:9305] from hosts providers and [{39031b77bc0f}{5NQsGOuKSFeU1E4mTHHeyw}{n2bZUvYZRuq6yH2Vmxm28g}{172.17.0.2}{172.17.0.2:9300}{dilm}{ml.machine_memory=8127148032, xpack.installed=true, ml.max_open_jobs=20}] from last-known cluster state; node term 0, last-accepted version 0 in term 0" },请问最后你是怎么解决的啊?

luoming

赞同来自:

    
在environment添加network.host配置
 
environment:
      - network.host=0.0.0.0
 

要回复问题请先登录注册