elasticsearch启动报错 bootstrap checks failed

ERROR: [1] bootstrap checks failed

1. 关于报错:[1]: max file descriptors [4096] for elasticsearch process is too low, increase to at least [65536]
 

解决办法:

vim /etc/security/limits.conf

添加

* soft nofile 65536
* hard nofile 65536

来回切换下用户,使之生效;

2. 关于报错:[2]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]

解决办法:

vim /etc/sysctl.conf

添加:

vm.max_map_count=262144

保存后,执行:

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中添加配置项:bootstrap.system_call_filter为false:

1

2

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]

vi /etc/security/limits.d/90-nproc.conf 

修改如下内容:

* soft nproc 1024

#修改为

* soft nproc 2048

参考:关于elasticsearch boostrap checks failed错误类型整理及解决方法 - linzepeng - 博客园

  • 4
    点赞
  • 36
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值