无论才能、知识多么卓著,如果缺乏热情,则无异纸上画饼充饥,无补于事。

ES7.2.0 无法组成集群

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

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
 

要回复问题请先登录注册