美文网首页
elasticsearch报错汇总

elasticsearch报错汇总

作者: 264e6feedbe7 | 来源:发表于2017-11-13 16:11 被阅读0次

    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
    

    相关文章

      网友评论

          本文标题:elasticsearch报错汇总

          本文链接:https://www.haomeiwen.com/subject/demzmxtx.html