昨天还可以正常启动,今天及不行。。
在网上找了很多方法都不行,后来参考https://blog.csdn.net/happyzxs/article/details/89156068,修复好了
一、遇到的问题
启动elasticsearch.bar闪退,进入cmd运行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
二、解决
修改config文件夹中elasticsearch.yml文件
将 #cluster.initial_master_nodes: ["node-1","node-2"]改为
cluster.initial_master_nodes: ["node-1"]