栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 前沿技术 > 云计算 > 云平台

ElasticSearch集群环境启动报错

云平台 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

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
转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/898104.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号