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安装在了
cd /opt/softs/elasticsearch 中了
在config文件夹下的 elasticsearch.yml文件中
如果你配置了network.host:0.0.0.0
就是说,可以让除了localhost:9200来访问,还可以让其他的ip地址来访问,那么
这个时候,就需要制定一个,主节点的名字才行,要不然就报这个错误,因为elasticsearch在网络
中会自动组成集群,需要指定主节点.
cluster.initial_master_nodes: ["node-1"]
加上这个就可以了.
技术交流QQ群【JAVA,C++,Python,.NET,BigData,AI】:170933152
账号:脑瓜凉
开通了个人技术微信公众号:脑瓜凉,有需要的朋友可以添加相互学习