elasticsearch报错汇总
2017-11-13 本文已影响0人
264e6feedbe7
elasticsearch启动报max virtual memory areas vm.max_map_count [65530] is too low
具体错误信息如下:
[2017-11-13T10:57:28,968][INFO ][o.e.b.BootstrapChecks ] [bigdata-2] bound or publishing to a non-loopback or non-link-local address, enforcing bootstrap checks
[2017-11-13T10:57:28,973][ERROR][o.e.b.Bootstrap ] [bigdata-2] node validation exception
bootstrap checks failed
max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
[2017-11-13T10:57:28,977][INFO ][o.e.n.Node ] [bigdata-2] stopping ...
[2017-11-13T10:57:29,032][INFO ][o.e.n.Node ] [bigdata-2] stopped
[2017-11-13T10:57:29,032][INFO ][o.e.n.Node ] [bigdata-2] closing ...
[2017-11-13T10:57:29,051][INFO ][o.e.n.Node ] [bigdata-2] closed
解决办法:
1. 切换到root用户修改配置sysctl.conf
2. 添加如下配置
vm.max_map_count = 655360
3. 执行命令
sysctl -p