栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 前沿技术 > 大数据 > 其他

You must address the points described in the following [1] lines before starting Elasticsearch.

其他 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

You must address the points described in the following [1] lines before starting Elasticsearch.

最近在尝试使用新版本ES7.15.0的时候,启动报错,此处记录一下报错日志:

ERROR: [1] bootstrap checks failed. You must address the points described in the following [1] lines before starting Elasticsearch.

此处同时记录下帮助他人安装ES7.1的时候的错误日志如下:

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

上述错误log可以看出需要指定ES节点的地址,我在配置elasticsearch.yml的时候确实没有指定地址,单节点ES一般都是默认本地的IP加端口,那我们可以通过将ES作为单节点的方式启动应该就能通过启用默认配置,那我们在启动的时候添加启动配置试试,先查看一下帮助如何通过命令添加启动配置项。

输入./elasticsearch --help查看启动命令帮助如下:

Option                Description                                               
------                -----------                                               
-E      Configure a setting                                       
-V, --version         Prints Elasticsearch version information and exits        
-d, --daemonize       Starts Elasticsearch in the background                    
-h, --help            Show help                                                 
-p, --pidfile   Creates a pid file in the specified path on start         
-q, --quiet           Turns off standard output/error streams logging in console
-s, --silent          Show minimal output                                       
-v, --verbose         Show verbose output    

方案1:
在启动的时候添加配置项是通过-E Key-Value键值对的方式添加的。
所以通过./elasticsearch -E "discovery.type=single-node"命令便可正常启动ES.

方案2:
或者在elasticsearch的config目录下,修改elasticsearch.yml配置文件,添加单节点或者多节点配置。打开配置discovery.seed_hosts,discovery.seed_providers,cluster.initial_master_nodes三者中至少一个即可(保持默认即可,也可以根据需要自行更改)。多节点的情况下添加多个ip地址即可。

cluster.initial_master_nodes: ["node-1", "node-2"] #“node-1”,""node-2""为两个节点的名字
#discovery.seed_hosts: ["host1", "host2"]
#discovery.seed_hosts: ["host1", "host2"]

此处记录ES7.1的部分启动日志:

ES7.1.0版本的成功截图:、

ES7.15版本的成功截图:

如果这个对你们有帮助的话,记得点个赞关注一波再走哦_

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/279492.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号