es7.13.2集群安装失败报错处理

ERROR: [2] bootstrap checks failed.You must address the points described in the following [2] lines before starting Elasticsearch.

bootstrap checks failed [1] of [2]: memory locking requested for elasticsearch process but memory is not locked

bootstrap checks failed [1] of [2]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]

ERROR: Elasticsearch did not exit normally - check the logs at /a/es/logs/my-cluster.log

系统:centos7.6 (vm虚拟机)

软件:java-1.8、elasticsearch-5.6.16-1.noarch

错误信息:

[2019-11-21T00:29:51,557][ERROR][o.e.b.Bootstrap ] [elk-1] node validation exception

[1] bootstrap checks failed

[1]: memory locking requested for elasticsearch process but memory is not locked

解决方法一(关闭bootstrap.memory_lock:,会影响性能):

vim /etc/elasticsearch/elasticsearch.yml // 设置成false就正常运行了。

bootstrap.memory_lock: false

解决方法二(开启bootstrap.memory_lock:):

  1. 修改文件/etc/elasticsearch/elasticsearch.yml,上面那个报错就是开启后产生的,如果开启还要修改其它系统配置文件

bootstrap.memory_lock: true

  1. 修改文件/etc/security/limits.conf,最后添加以下内容。
bash 复制代码
vim /etc/security/limits.conf 
bash 复制代码
* soft nofile 65536

* hard nofile 65536

* soft nproc 32000

* hard nproc 32000

* hard memlock unlimited

* soft memlock unlimited
  1. 修改文件 /etc/systemd/system.conf ,分别修改以下内容。
bash 复制代码
DefaultLimitNOFILE=65536

DefaultLimitNPROC=32000

DefaultLimitMEMLOCK=infinity

改好后重启下系统。再启动elasticsearch就没报错了 。

bash 复制代码
vim /etc/sysctl.conf

保存文件并执行以下命令使修改生效:

bash 复制代码
   sysctl -p

es7.13.2启动报错:

bootstrap checks failed [1] of [2]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]

bash 复制代码
vim /etc/sysctl.conf

vm.max_map_count=262144

 sysctl -p
相关推荐
鸡鸭扣37 分钟前
Docker:3、在VSCode上安装并运行python程序或JavaScript程序
运维·vscode·python·docker·容器·js
人工干智能4 小时前
科普:“Docker Desktop”和“Docker”以及“WSL”
运维·docker·容器
落笔画忧愁e4 小时前
FastGPT及大模型API(Docker)私有化部署指南
运维·docker·容器
前端郭德纲4 小时前
前端自动化部署的极简方案
运维·前端·自动化
DC_BLOG5 小时前
Linux-GlusterFS进阶配置
linux·运维·服务器
浮华落定7 小时前
Centos开机自启动
linux·运维·centos
End9288 小时前
如何安装虚拟机cenos7系统
大数据·linux·运维
eight *9 小时前
Dockerfile制作镜像示例 X86版本
运维·docker
5:009 小时前
Linux:进程间通信(一.初识进程间通信、匿名管道与命名管道、共享内存)
linux·运维·服务器
桜見11 小时前
ubuntu上pylon无法启动
linux·运维·ubuntu