网站首页 安全运维 ELasticSearch7.6.2 ES集群搭建
ELasticSearch7.6.2 ES集群搭建
编辑时间:2020-05-07 14:13 作者:nllihui6390 浏览量:3548

一、下载

https://www.elastic.co/cn/downloads/elasticsearch

二、安装



三、遇到的问题

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

     每个进程最大同时打开文件数太小,可通过下面2个命令查看当前数量

    ulimit -Hn
    ulimit -Sn

    修改/etc/security/limits.conf文件,增加配置,用户退出后重新登录生效

*        hard    nofile           65536
*        soft    nofile           65536




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

elasticsearch启动时遇到的错误

问题翻译过来就是:elasticsearch用户拥有的内存权限太小,至少需要262144;

解决:

切换到root用户

执行命令:

sysctl -w vm.max_map_count=262144

查看结果:

sysctl -a|grep vm.max_map_count

显示:

vm.max_map_count = 262144

上述方法修改之后,如果重启虚拟机将失效,所以:

解决办法:

在   /etc/sysctl.conf文件最后添加一行

vm.max_map_count=262144

即可永久修改


4、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


来说两句吧
乖,登录后才可以留言!
最新评论