ES啓動報錯ERROR: bootstrap checks failed

錯誤描述:Linux默認配置的參數過小,需要自己設置

max file descriptors [4096] for elasticsearch process is too low, increase to at least [65536]
max number of threads [1024] for user [hadoop] is too low, increase to at least [2048]
max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]

解決方案:

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

切換到root用戶

 ulimit -Hn  查看硬限制

vim /etc/security/limits.conf 

 

添加下面設置 hadoop是用戶

也可以是設置 * soft nofile 65536 

es soft nofile 65536
es hard nofile 65536

 

退出用戶重新登錄,使配置生效

重新 ulimit -Hn  查看硬限制 會發現數值有4096改成65535

vi /etc/sysctl.conf

添加下面配置:

vm.max_map_count=655360

並執行命令:

sysctl -p

然後 su es 

啓動es發現可以啓動成功

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章