Elasticsearch 启动提示 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

原创 HuangLongPu     发表于  2021-03-25 21:45       278

Elasticsearch 启动提示信息缺少默认节点错误:

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

关键异常信息:

at least one of [discovery.seed_hosts, discovery.seed_providers, cluster.initial_master_nodes] must be configured

这里可以得出来,discovery.seed_hosts、discovery.seed_providers、cluster.initial_master_nodes 至少要配置一个。

解决办法

编辑 elasticsearch.yml 文件,修改 cluster.initial_master_nodes 属性

[root@localhost bin]$ vim ../config/elasticsearch.yml

修改 cluster.initial_master_nodes 默认属性值

cluster.initial_master_nodes: ["node-1"]