昨天還可以正常啟動,今天及不行。。
在網上找了很多方法都不行,后來參考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"]
