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,可以发现已经成功启动了:

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

被折叠的 条评论
为什么被折叠?



