ERROR|elasticsearch启动时 bootstrap checks failed

[2020-07-23T14:56:10,152][ERROR][o.e.b.Bootstrap] [node-1] node validation exception [1] bootstrap checks failed [1]: the default discovery settings are unsuitable for production use; at least one of [discovery.seed_hosts, discovery.seed_providers, cluster.initial_master_nodes] must be configured [2020-07-23T14:56:10,154][INFO ][o.e.n.Node] [node-1] stopping ... [2020-07-23T14:56:10,173][INFO ][o.e.n.Node] [node-1] stopped [2020-07-23T14:56:10,173][INFO ][o.e.n.Node] [node-1] closing ... [2020-07-23T14:56:10,191][INFO ][o.e.n.Node] [node-1] closed

# --------------------------------- Discovery ---------------------------------- # # Pass an initial list of hosts to perform discovery when this node is started: # The default list of hosts is ["127.0.0.1", "[::1]"] # #discovery.seed_hosts: ["host1", "host2"] # # Bootstrap the cluster using an initial set of master-eligible nodes: # cluster.initial_master_nodes: ["node-1"]#开启这一行 # # For more information, consult the discovery and cluster formation module documentation.

【ERROR|elasticsearch启动时 bootstrap checks failed】重启就ok了
sudo systemctl restart elasticsearch.service

    推荐阅读