ElasticSearch集群环境启动报错

  • 环境:

    • jdk1.8

    • centos7.6

    • elasticsearch7.8

config/elasticsearch.yml

  • hadoop168:
cluster.name: elasticsearch-cluster
node.name: hadoop168
node.master: true
node.data: true
node.max_local_storage_nodes: 3
path.data: /opt/elasticsearch-7.8.0/data
path.logs: /opt/elasticsearch-7.8.0/logs
network.host: 192.168.168.168
http.port: 9200
transport.tcp.port: 9300
discovery.seed_hosts: ["192.168.168.168:9300", "192.168.168.169:9300", "192.168.168.170:9300"]
cluster.initial_master_nodes: ["192.168.168.168", "192.168.168.169", "192.168.168.170"]
xpack.monitoring.collection.enabled: true

  • hadoop169:
cluster.name: elasticsearch-cluster
node.name: hadoop169
node.master: true
node.data: true
node.max_local_storage_nodes: 3
path.data: /opt/elasticsearch-7.8.0/data
path.logs: /opt/elasticsearch-7.8.0/logs
network.host: 192.168.168.169
http.port: 9200
transport.tcp.port: 9300
discovery.seed_hosts: ["192.168.168.168:9300", "192.168.168.169:9300", "192.168.168.170:9300"]
cluster.initial_master_nodes: ["192.168.168.168", "192.168.168.169", "192.168.168.170"]
xpack.monitoring.collection.enabled: true
  • hadoop170:
cluster.name: elasticsearch-cluster
node.name: hadoop170
node.master: true
node.data: true
node.max_local_storage_nodes: 3
path.data: /opt/elasticsearch-7.8.0/data
path.logs: /opt/elasticsearch-7.8.0/logs
network.host: 192.168.168.170
http.port: 9200
transport.tcp.port: 9300
discovery.seed_hosts: ["192.168.168.168:9300", "192.168.168.169:9300", "192.168.168.170:9300"]
cluster.initial_master_nodes: ["192.168.168.168", "192.168.168.169", "192.168.168.170"]
xpack.monitoring.collection.enabled: true

报错信息:

[2022-05-06T20:39:16,429][INFO ][o.e.n.Node               ] [hadoop168] initialized
[2022-05-06T20:39:16,429][INFO ][o.e.n.Node               ] [hadoop168] starting ...
[2022-05-06T20:39:16,666][INFO ][o.e.t.TransportService   ] [hadoop168] publish_address {192.168.168.168:9300}, bound_addresses {192.168.168.168:9300}
[2022-05-06T20:39:16,974][INFO ][o.e.b.BootstrapChecks    ] [hadoop168] bound or publishing to a non-loopback address, enforcing bootstrap checks
[2022-05-06T20:39:26,987][WARN ][o.e.c.c.ClusterFormationFailureHelper] [hadoop168] master not discovered yet, this node has not previously joined a bootstrapped (v7+) cluster, and this node must discover master-eligible nodes [192.168.168.168, 192.168.168.169, 192.168.168.170] to bootstrap a cluster: have discovered [{hadoop168}{2Lz7sEkTTRWz61t3JmQMBg}{eE-SlHtOQCOKNcowSyrW2Q}{192.168.168.168}{192.168.168.168:9300}{dilmrt}{ml.machine_memory=1910075392, xpack.installed=true, transform.node=true, ml.max_open_jobs=20}]; discovery will continue using [192.168.168.169:9300, 192.168.168.170:9300] from hosts providers and [{hadoop168}{2Lz7sEkTTRWz61t3JmQMBg}{eE-SlHtOQCOKNcowSyrW2Q}{192.168.168.168}{192.168.168.168:9300}{dilmrt}{ml.machine_memory=1910075392, xpack.installed=true, transform.node=true, ml.max_open_jobs=20}] from last-known cluster state; node term 0, last-accepted version 0 in term 0
  • 使用了一建启动的脚本,问题的根源,warn级别的日志不影响启动,要到每个节点上分开去启动ElasticSearch
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值