Elasticsearch启动报错

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Elasticsearch启动报错相关的知识,希望对你有一定的参考价值。

报错信息一:

ERROR: [2] bootstrap checks failed
[1]: max file descriptors [4096] for elasticsearch process is too low, increase to at least [65536]
[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=655360

并执行命令:

# sysctl -p

报错信息二:

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

解决方法:

切换到root用户

# ulimit -Hn  查看硬限制

# vim /etc/security/limits.conf 

#添加下面设置 hadoop是用户

elsearch soft nofile 65536
elsearch hard nofile 65536

退出用户重新登录,使配置生效

重新 ulimit -Hn  查看硬限制 会发现数值有4096改成65535

# vim /etc/security/limits.d/90-nproc.conf 

找到如下内容:

soft nproc 1024

修改为

soft nproc 2048

以上是关于Elasticsearch启动报错的主要内容,如果未能解决你的问题,请参考以下文章

ElasticSearch学习问题记录——Invalid shift value in prefixCoded bytes (is encoded value really an INT?)(代码片段

SpringBoot启动报错“Consider defining a bean of type ‘xxx.mapper.UserMapper‘ in your configuration.“(代码片段

ElasticSearch启动报错 ERROR

Nginx——Nginx启动报错Job for nginx.service failed because the control process exited with error code(代码片段

elk中elasticsearch安装启动报错

项目启动报错Failed to configure a DataSource: 'url' attribute is not specified and no embedde(代码片段