重启es 异常ERROR: [1] bootstrap checks failed

2021-02-19 11:25:13 浏览数 (1)

启动报错如下:

代码语言:javascript复制
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

修改elasticsearch.yml 取消注释保留一个节点

代码语言:javascript复制
cluster.initial_master_nodes: ["node-1"]

这个的话,这里的node-1是上面一个默认的记得打开就可以了 重启正常

代码语言:javascript复制
systemctl restart elasticsearch.service

0 人点赞