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

解决 elasticsearch 启动错误 bootstrap checks failed

解决 elasticsearch 启动错误 bootstrap checks failed

解决 elasticsearch 启动错误 bootstrap checks failed 异常信息:
[2021-12-14T10:32:17,074][INFO ][o.e.b.BootstrapChecks    ] [node-10] 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 number of threads [1024] for user [xzlawin] is too low, increase to at least [4096]
[3]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
ERROR: Elasticsearch did not exit normally - check the logs at /usr/local/opt/elasticsearch-7.8.0/logs/my-application.log
[2021-12-14T10:32:17,106][INFO ][o.e.n.Node               ] [node-10] stopping ...
[2021-12-14T10:32:17,139][INFO ][o.e.n.Node               ] [node-10] stopped
[2021-12-14T10:32:17,139][INFO ][o.e.n.Node               ] [node-10] closing ...
[2021-12-14T10:32:17,160][INFO ][o.e.n.Node               ] [node-10] closed
[2021-12-14T10:32:17,162][INFO ][o.e.x.m.p.NativeController] [node-10] Native controller process has stopped - no new native processes can be started
分析原因:bootstrap 校验失败 解决方法:将当前用户的软硬限制调大
  • 修改配置文件,/etc/security/limits.conf
cp -a /etc/security/limits.conf /etc/security/limits.conf.bak
vi /etc/security/limits.conf
# 在文件末尾追加下面内容
xzlawin soft nofile 65536
xzlawin hard nofile 65536
  • 修改配置文件,/etc/security/limits.d/90-nproc.conf
cp -a /etc/security/limits.d/90-nproc.conf /etc/security/limits.d/90-nproc.conf.bak
vi /etc/security/limits.d/90-nproc.conf
# 在文件末尾追加下面内容
xzlawin soft nofile 65536
xzlawin hard nofile 65536
* soft nproc 4096
* hard nproc 4096
# 注意:* 表示Linux所有用户名称
  • 修改配置文件,/etc/sysctl.conf
cp -a /etc/sysctl.conf /etc/sysctl.conf.bak
vi /etc/sysctl.conf
# 在文件末尾追加下面内容
vm.max_map_count=655360
  • 重新加载
sysctl -p
转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/663184.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

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

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