zoukankan      html  css  js  c++  java
  • elasticsearch 安装报错

    elasticsearch安装踩过的那些坑:

    坑1:
    [***]failed to send join request to master
    原因:你复制了某个节点的elasticsearch文件夹,但是这里面包含了该节点的data文件
    解决:删除elasticsearch文件夹下data目录的内容

    坑2:
    ERROR: bootstrap checks failed
    memory locking requested for elasticsearch process but memory is not locked
    原因:锁定内存失败
    解决:vim /etc/security/limits.conf 添加下面两行
    * soft memlock unlimited
    * hard memlock unlimited
    tips:* 代表的是linux内所有的用户

    坑3:
    ERROR: bootstrap checks failed
    max file descriptors [4096] for elasticsearch process is too low, increase to at least [65536]
    原因:无法创建本地文件,用户最大可创建文件数不够
    解决:vim /etc/security/limits.conf
    *                hard    nofile          65536
    *                soft    nofile          65536
    *                soft    nproc           65536
    *                hard    nproc           65536

    坑4:
    max number of threads [1024] for user [es] is too low, increase to at least [2048]
    原因:无法创建本地线程问题,用户最大可创建线程数太小
    解决:vim /etc/security/limits.d/90-nproc.conf
    * soft nproc 2048(这边原本是1024)

    坑5:
    max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
    原因:最大虚拟内存太小
    解决:vim /etc/sysctl.conf 添加下面这一行
    vm.max_map_count=262144
    并执行命令:sysctl -p

    坑6:
    system call filters failed to install; check the logs and fix your configuration or disable system call filters at your own risk
    原因:Centos6不支持SecComp
    解决:vim elasticsearch.yml  切记在内存锁的下面加
    bootstrap.memory_lock: false
    bootstrap.system_call_filter: false

    坑7:
    uncaught exception in thread [main]
    org.elasticsearch.bootstrap.StartupException: java.lang.RuntimeException: can not run elasticsearch as root
    原因:elasticsearch不能使用root用户启动
    解决:创建新用户(useradd elasticsearch)并 chown -R elasticsearch:elasticsearch elasticsearch-5.2.2 [更改elasticsearch文件夹的用户以及所属组]

    坑8:
    unable to install syscall filter:
    java.lang.UnsupportedOperationException: seccomp unavailable: requires kernel 3.5+ with CONFIG_SECCOMP and CONFIG_SECCOMP_FILTER compiled in
            at org.elasticsearch.bootstrap.SystemCallFilter.linuxImpl(SystemCallFilter.java:350) ~[elasticsearch-5.4.0.jar:5.4.0]
            at org.elasticsearch.bootstrap.SystemCallFilter.init(SystemCallFilter.java:638) ~[elasticsearch-5.4.0.jar:5.4.0]
            at org.elasticsearch.bootstrap.JNANatives.tryInstallSystemCallFilter(JNANatives.java:215) [elasticsearch-5.4.0.jar:5.4.0]
            at org.elasticsearch.bootstrap.Natives.tryInstallSystemCallFilter(Natives.java:99) [elasticsearch-5.4.0.jar:5.4.0]
            at org.elasticsearch.bootstrap.Bootstrap.initializeNatives(Bootstrap.java:111) [elasticsearch-5.4.0.jar:5.4.0]
            at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:204) [elasticsearch-5.4.0.jar:5.4.0]
            at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:360) [elasticsearch-5.4.0.jar:5.4.0]
            at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:123) [elasticsearch-5.4.0.jar:5.4.0]
            at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:114) [elasticsearch-5.4.0.jar:5.4.0]
            at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:67) [elasticsearch-5.4.0.jar:5.4.0]
            at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:122) [elasticsearch-5.4.0.jar:5.4.0]
            at org.elasticsearch.cli.Command.main(Command.java:88) [elasticsearch-5.4.0.jar:5.4.0]
            at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:91) [elasticsearch-5.4.0.jar:5.4.0]
            at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:84) [elasticsearch-5.4.0.jar:5.4.0]
    原因:linux内核版本太低
    解决:凉凉,换个新版本的linux系统吧。

    坑9:
    Unsupported major.minor version 52.0
    原因:java版本太低
    解决:更换jdk版本,ElasticSearch5.0.0支持jdk1.8.0以坑10:org.elasticsearch.bootstrap.StartupException: java.lang.IllegalArgumentException: Property [elasticsearch.version] is missing for plugin [head]

            at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:125) ~[elasticsearch-5.2.2.jar:5.2.2]
            at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:112) ~[elasticsearch-5.2.2.jar:5.2.2]
            at org.elasticsearch.cli.SettingCommand.execute(SettingCommand.java:54) ~[elasticsearch-5.2.2.jar:5.2.2]
            at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:122) ~[elasticsearch-5.2.2.jar:5.2.2]
            at org.elasticsearch.cli.Command.main(Command.java:88) ~[elasticsearch-5.2.2.jar:5.2.2]
            at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:89) ~[elasticsearch-5.2.2.jar:5.2.2]
            at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:82) ~[elasticsearch-5.2.2.jar:5.2.2]
    Caused by: java.lang.IllegalArgumentException: Property [elasticsearch.version] is missing for plugin [head]
            at org.elasticsearch.plugins.PluginInfo.readFromProperties(PluginInfo.java:104) ~[elasticsearch-5.2.2.jar:5.2.2]
            at org.elasticsearch.plugins.PluginsService.getPluginBundles(PluginsService.java:292) ~[elasticsearch-5.2.2.jar:5.2.2]
            at org.elasticsearch.plugins.PluginsService.<init>(PluginsService.java:131) ~[elasticsearch-5.2.2.jar:5.2.2]
            at org.elasticsearch.node.Node.<init>(Node.java:297) ~[elasticsearch-5.2.2.jar:5.2.2]
            at org.elasticsearch.node.Node.<init>(Node.java:232) ~[elasticsearch-5.2.2.jar:5.2.2]
            at org.elasticsearch.bootstrap.Bootstrap$6.<init>(Bootstrap.java:241) ~[elasticsearch-5.2.2.jar:5.2.2]
            at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:241) ~[elasticsearch-5.2.2.jar:5.2.2]
            at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:333) ~[elasticsearch-5.2.2.jar:5.2.2]
            at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:121) ~[elasticsearch-5.2.2.jar:5.2.2]
            ... 6 more
    原因:elasticsearch新版本是不允许安装插件在文件目录plugins下面的
    解决:将plugins下面的插件目录放到其他目录即可
    转发:
    https://blog.csdn.net/u013641234/article/details/80792416

  • 相关阅读:
    docker部署Nginx
    docker的常用命令
    centos上安装docker
    springcloud负载均衡及Ribbon
    maven下载私服jar
    spring security异常处理的三种方式
    spring security权限控制
    北京理工大学复试上机--2001A
    北京理工大学复试上机--2000
    PAT1067 试密码 (20分)——测试点4分析 一个易错点
  • 原文地址:https://www.cnblogs.com/rutor/p/11158640.html
Copyright © 2011-2022 走看看