[1]: the default discovery settings are unsuitable for production use; at least one of [discovery.se

报错分析:

在启动ElasticSearch的过程中爆出了以下错误:

ERROR: [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

解决方案:

elasticsearchconfig目录下,修改elasticsearch.yml配置文件,将下面的配置加入到该配置文件中:

ip替换host1等,多节点请添加多个ip地址,单节点可写按默认来
#配置以下三者,最少其一
#[discovery.seed_hosts, discovery.seed_providers, cluster.initial_master_nodes]
cluster.initial_master_nodes: ["node-1"] #这里的node-1为node-name配置的值

[1]: the default discovery settings are unsuitable for production use; at least one of [discovery.se_第1张图片

你可能感兴趣的:(报错笔记)