ElasticSearch7 set up external network access

ElasticSearch7.3 允许外网访问,bootstrap checks failed,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

Linux installation ElasticSearch, modify the startup configuration file after the failure of elasticsearch.yml.

  • CentOS Linux release 7.5
  • ElasticSearch version 7.3.0
  • Java openjdk version 1.8.0_222

My setup:

vim /etc/elasticsearch/elasticsearch.yml
# ---------------------------------- Network -----------------------------------
#
# Set the bind address to a specific IP (IPv4 or IPv6):
#
network.host: 0.0.0.0
#

View Log found (NPM installation elasticsearch log path / var / log / elasticsearch)

[ERROR][o.e.b.Bootstrap] [localhost.localdomain] 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

Translation is, in discovery.seed_hosts, discovery.seed_providers, cluster.initial_master_nodes at least one set.

Carefully read the document's official website: discovery.seed_hosts set to the default values.

discovery.seed_hosts: ["127.0.0.1", "[::1]"]

Guess you like

Origin www.cnblogs.com/sirdong/p/11768928.html