Kubernetes部署ELKat least one of [discovery.seed_hosts, discovery.seed_providers, cluster.initial_mast

本文介绍了在Kubernetes环境下,Elasticsearch启动时遇到的默认发现设置不适用于生产环境的问题。错误提示强调至少需要配置discovery.seed_hosts、discovery.seed_providers或cluster.initial_master_nodes之一。解决方案是在elasticsearch.yml配置文件中添加相应的参数并重启服务,确保集群正常启动。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

1、ES启动报错

ERROR: [1] bootstrap checks failed. You must address the points described in the following [1] lines before starting Elasticsearch.
bootstrap check failure [1] of [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
ERROR: Elasticsearch did not exit normally - check the logs at /usr/share/elasticsearch/logs/my-es.log

 解决方法:
在elasticsearch.yml 中添加:

discovery.seed_hosts: ["127.0.0.1", "[::1]"]
cluster.initial_master_nodes: ["node-1"]

 然后重新启动elasticsearch,可以发现已经成功启动了:

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值