elasticsearch常见错误及解决方案

1.OpenJDK 64-Bit Server VM warning: If the number of processors is expected to increase from one, then you should configure the number of parallel GC threads appropriately using -XX:ParallelGCThreads=N

解决方案:

 

2.java.lang.RuntimeException: don't run elasticsearch as root

 

解决方案:  增加一个专用用户

  1). adduser es

  2). passwd es

  3).chown -R es:es [es目录]

  通过es账户启动

 

3.max virtual memory areas vm.max_map_count [65530]is too low, increase to at least [262144]

 

解决方案: 

    修改/etc/sysctl.conf配置文件,添加vm.max_map_count=262144,重启或重新加载配置

 

 

4.max file descriptors [65535] for elasticsearchprocess is too low, increase to at least [65536]

 

解决方案: 

    修改/etc/security/limits.conf文件,把所有的65535改到65536

 

 

5.外网访问

解决方案: 修改elasticsearch.yml文件  增加 network.host :0.0.0.0   ,外加防火墙开启9200端口

  

 

posted @ 2018-11-12 16:44  阿波次得  阅读(1307)  评论(0编辑  收藏  举报