标签:CentOS max bootstrap system least increase failed elasticsearch
CentOS 7 启动ElasticSearch时报错bootstrap checks failed
错误:
[2021-01-27T11:50:22,939][INFO ][o.e.b.BootstrapChecks ] [cnetos7.hanhua.com] bound or publishing to a non-loopback address, enforcing bootstrap checks
ERROR: [3] bootstrap checks failed
[1]: max file descriptors [4096] for elasticsearch process is too low, increase to at least [65535]
[2]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
[3]: system call filters failed to install; check the logs and fix your configuration or disable system call filters at your own risk
[4]: max number of threads [1024] for user [lish] likely too low, increase to at least [2048]
ERROR: Elasticsearch did not exit normally - check the logs at /usr/local/elasticsearch7/logs/elasticsearch.log
第一个问题:
max file descriptors [1024] for elasticsearch process is too low, increase to at least [4029]
解决方案:
limits.conf,追加以下内容
vim /etc/security/limits.conf
* soft nofile 65536
* hard nofile 65536
注:如果编辑重启启动之后还不能消除这个错误,则重登陆用户。
第二个问题:
max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
解决方案:
sysctl.conf,追加以下内容:
[root@cnetos7 elasticsearch7]# vim /etc/sysctl.conf
vm.max_map_count=262144
保存后,执行:
[root@cnetos7 elasticsearch7]# sysctl -p
重新启动,成功。
第三个问题:
system call filters failed to install; check the logs and fix your configuration or disable system call filters at your own risk
出现错误的原因:是因为centos6.x操作系统不支持SecComp,而elasticsearch 5.5.2默认bootstrap.system_call_filter为true进行检测,所以导致检测失败,失败后直接导致ES不能启动。
解决方案:
在elasticsearch.yml中添加配置项:
[root@cnetos7 config]# vim elasticsearch.yml
bootstrap.memory_lock: false
bootstrap.system_call_filter: false
第四个问题:
max number of threads [1024] for user [wh] likely too low, increase to at least [2048]
解决方案:
修改如下内容:
[root@cnetos7 config]# vim /etc/security/limits.d/90-nproc.conf
soft nproc 1024
#修改为
soft nproc 2048
注:以上问题如果编辑重启启动之后还不能消除这个错误,则重登陆用户。
标签:CentOS,max,bootstrap,system,least,increase,failed,elasticsearch 来源: https://blog.csdn.net/qq_30486109/article/details/113246763
本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享; 2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关; 3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关; 4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除; 5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。