首页 > 其他 > 详细

ES启动报错ERROR: bootstrap checks failed

时间:2021-01-30 21:10:22      阅读:90      评论:0      收藏:0      [点我收藏+]

错误描述:Linux默认配置的参数过小,需要自己设置

max file descriptors [4096] for elasticsearch process is too low, increase to at least [65536]
max number of threads [1024] for user [hadoop] is too low, increase to at least [2048]
max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]

解决方案:

max file descriptors [4096] for elasticsearch process is too low, increase to at least [65536]

切换到root用户

 ulimit -Hn  查看硬限制

vim /etc/security/limits.conf 

 

添加下面设置 hadoop是用户

也可以是设置 * soft nofile 65536 

es soft nofile 65536
es hard nofile 65536

 

退出用户重新登录,使配置生效

重新 ulimit -Hn  查看硬限制 会发现数值有4096改成65535

vi /etc/sysctl.conf

添加下面配置:

vm.max_map_count=655360

并执行命令:

sysctl -p

然后 su es 

启动es发现可以启动成功

ES启动报错ERROR: bootstrap checks failed

原文:https://www.cnblogs.com/bj-xiaodao/p/14349935.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!