-
环境:
-
jdk1.8 -
centos7.6 -
elasticsearch7.8
config/elasticsearch.yml
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
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
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
|