启动elasticsearch报错解决

2022-10-26,,,

说不定以后会不定期更新该文档

1、提示文件描述符数量太少,修改/etc/security/limits.conf文件,添加。

* soft nofile 65537
* hard nofile 65537 * soft nproc 65537
* hard nproc 65537 * soft memlock unlimited
* hard memlock unlimited

2、max virtual memory areas vm.max_map_count [65530] likely too low, increase to at least [262144]

/etc/sysctl.conf 文件添加 vm.max_map_count=262144
sysctl -p

3、system call filters failed to install; check the logs and fix your configuration or disable system call filters at your own risk

原因:
这是在因为Centos6不支持SecComp,而ES5.2.0默认bootstrap.system_call_filter为true进行检测,所以导致检测失败,失败后直接导致ES不能启动
解决
elasticsearch.yml中配置bootstrap.system_call_filter为false,注意要在Memory下面:
bootstrap.memory_lock: false
bootstrap.system_call_filter: false

启动elasticsearch报错解决的相关教程结束。

《启动elasticsearch报错解决.doc》

下载本文的Word格式文档,以方便收藏与打印。