码迷,mamicode.com
首页 > 其他好文 > 详细

首次运行elasticsearch错误处理

时间:2017-07-18 14:20:29      阅读:305      评论:0      收藏:0      [点我收藏+]

标签:elasticsearch ekl linux

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

处理方法:

解决:切换到root用户,编辑limits.conf 添加类似如下内容
vi /etc/security/limits.conf 
添加如下内容:
* soft nofile 65536
* hard nofile 131072
* soft nproc 2048
* hard nproc 4096


 

[2]: max number of threads [1024] for user [op] is too low, increase to at least [2048]

解决:切换到root用户,进入limits.d目录下修改配置文件。
vi /etc/security/limits.d/90-nproc.conf 
修改如下内容:
* soft nproc 1024
#修改为
* soft nproc 2048


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

解决:切换到root用户修改配置sysctl.conf
vi /etc/sysctl.conf 
添加下面配置:
vm.max_map_count=655360
并执行命令:
sysctl -p


[4]: system call filters failed to install; check the logs and fix your configuration or disable system call filters at your own risk

解决:vim /etc/elasticsearch/elasticsearch.yml
增加如下一行:
bootstrap.system_call_filter: false
PS:
elasticsearch5.0后必须用普通用户运行,禁止以root用户运行


本文出自 “小科” 博客,请务必保留此出处http://kexiaoke.blog.51cto.com/5530023/1948526

首次运行elasticsearch错误处理

标签:elasticsearch ekl linux

原文地址:http://kexiaoke.blog.51cto.com/5530023/1948526

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!