elasticsearch启动时Warning解决办法:

转载:http://www.dajiangtai.com/community/18136.do?origin=csdn-geek&dt=1214

问题一:

 
[2016-11-06T16:27:21,712][WARN ][o.e.b.JNANatives ] unable to install syscall filter:
 
Java.lang.UnsupportedOperationException: seccomp unavailable: requires kernel 3.5+ with CONFIG_SECCOMPandCONFIG_SECCOMP_FILTERcompiledinatorg.elasticsearch.bootstrap.Seccomp.linuxImpl(Seccomp.java:349) ~[elasticsearch-5.0.0.jar:5.0.0]
 
at org.elasticsearch.bootstrap.Seccomp.init(Seccomp.java:630) ~[elasticsearch-5.0.0.jar:5.0.0]
 
原因:报了一大串错误,大家不必惊慌,其实只是一个警告,主要是因为你Linux版本过低造成的。
 
解决方案:
1、重新安装新版本的Linux系统
2、警告不影响使用,可以忽略
 
问题二:
ERROR: bootstrap checks failed
 
max file descriptors [4096] for elasticsearch process likely too low, increase to at least [65536]
 
原因:无法创建本地文件问题,用户最大可创建文件数太小
 
解决方案:
切换到root用户,编辑limits.conf配置文件, 添加类似如下内容:
 
vi /etc/security/limits.conf
 
添加如下内容:
*  soft nofile 65536
 
* hard nofile 131072
 
* soft nproc 2048
 
* hard nproc 4096
备注:* 代表Linux所有用户名称(比如 hadoop)
 
保存、退出、重新登录才可生效
 
问题三:
max number of threads [1024] for user [es] likely too low, increase to at least [2048]
原因:无法创建本地线程问题,用户最大可创建线程数太小
解决方案:切换到root用户,进入limits.d目录下,修改90-nproc.conf 配置文件。
 
vi /etc/security/limits.d/90-nproc.conf
 
找到如下内容:
 
* soft nproc 1024
 
#修改为
 
* soft nproc 2048
 
问题四:
max virtual memory areas vm.max_map_count [65530] likely too low, increase to at least [262144]
原因:最大虚拟内存太小
解决方案:切换到root用户下,修改配置文件sysctl.conf
 
vi /etc/sysctl.conf
 
添加下面配置:
 
vm.max_map_count=655360
 
并执行命令:
 
sysctl -p
 
然后重新启动elasticsearch,即可启动成功。
 
问题五:
ElasticSearch启动找不到主机或路由
原因:ElasticSearch 单播配置有问题
解决方案:
检查ElasticSearch中的配置文件
vi  config/elasticsearch.yml
找到如下配置:
 
discovery.zen.ping.unicast.hosts:["192.168.**.**:9300","192.168.**.**:9300"]
一般情况下,是这里配置有问题,注意书写格式
 
问题六:
org.elasticsearch.transport.RemoteTransportException: Failed to deserialize exception response from stream
 
原因:ElasticSearch节点之间的jdk版本不一致
 
解决方案:ElasticSearch集群统一jdk环境
 
问题七:
Unsupported major.minor version 52.0
 
原因:jdk版本问题太低
解决方案:更换jdk版本,ElasticSearch5.0.0支持jdk1.8.0
 
问题八:
bin/elasticsearch-plugin install license
ERROR: Unknown plugin license
 
原因:ElasticSearch5.0.0以后插件命令已经改变
解决方案:使用最新命令安装所有插件

bin/elasticsearch-plugin install x-pack

问题九:

ERROR: bootstrap checks failed
max file descriptors [65535] for elasticsearch process likely too low, increase to at least [65536]
memory locking requested for elasticsearch process but memory is not locked
max number of threads [1024] for user [jason] likely too low, increase to at least [2048]
max virtual memory areas vm.max_map_count [65530] likely too low, increase to at least [262144]
system call filters failed to install; check the logs and fix your configuration or disable system call filters at your own risk

> vim /etc/security/limits.conf
...
elasticsearch hard nofile 65536 # 针对 max file descriptors
elasticsearch soft nproc 2048 # 针对 max number of threads

> vim /etc/sysctl.conf
...
vm.max_map_count=262144 # 针对 max virtual memory areas

> vim /etc/elasticsearch/elasticsearch.yml

...
bootstrap.system_call_filter: false # 针对 system call filters failed to install, 参见 https://www.elastic.co/guide/en/elasticsearch/reference/current/system-call-filter-check.html

最新文章

  1. 看完SQL Server 2014 Q/A答疑集锦:想不升级都难!
  2. CS193P - 2016年秋 第一讲 课程简介
  3. 用栈解决Largest Rectangle问题
  4. 第 15 章 CSS 文本样式[上]
  5. python笔记一
  6. Zookeeper开源客户端框架Curator简介[转]
  7. 解决ntp的错误 no server suitable for synchronization found
  8. Codeforces 735C:Tennis Championship(数学+贪心)
  9. POJ 3107-Godfather(树形dp)
  10. [OJ] Permutation Index
  11. mongodb3.0 性能測试报告 一
  12. MultiTigger 绑定异常处理
  13. Python学习 Part6:错误和异常
  14. BZOJ.2177.曼哈顿最小生成树(Kruskal)
  15. 20145101《Java程序设计》第二周学习总结
  16. 树莓3B+_teamviewer_install
  17. android fragment activity 区别
  18. hdu 2545 树上战争(并查集)
  19. mysql测试工具
  20. 三种实现Ajax的方式

热门文章

  1. codeforces 789 C. Functions again(dp求区间和最大)
  2. XML序列化CDATA
  3. 全栈开发博客系统(nodejs+vuejs+mongodb)
  4. Kafka的安全认证机制SASL/PLAINTEXT
  5. Elasticsearch之更新
  6. Maven依赖配置和依赖范围
  7. 一道算法问题:一幢 200 层的大楼,给你两个鸡蛋. 如果在第 n 层扔下鸡蛋,鸡蛋不碎,那么从前 n-1 层扔鸡蛋都不碎. 这两只鸡蛋一模一样,不碎的话可以扔无数次. 已知鸡蛋在0层扔不会碎. 提出一个策略, 要保证能测出鸡蛋恰好会碎的楼层, 并使此策略在最坏情况下所扔次数最少.
  8. Factory Method工厂方法模式
  9. Python分布式爬虫必学框架Scrapy打造搜索引擎
  10. C++11新增容器以及元组