搭建过程中遇到的问题,总结一下:
由于6.3版本需要的jdk是1.8的,所以必须升级jdk。
1.cdh版本目前的jdk是1.7,所以再安装1.8的jdk,需要注意两个版本如何共存。
2.安装6.3版本的时候,会遇到的问题:
一:ERROR: bootstrap checks failed
在elasticsearch.yml中配置bootstrap.system_call_filter为false
bootstrap.memory_lock: false
bootstrap.system_call_filter: false
二:
max file descriptors [4096] for elasticsearch process is too low, increase to at least [65536]
max number of threads [1024] for user [elsearch] is too low, increase to at least [2048]
max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
解决:
编辑limits.conf 文件
vim /etc/security/limits.conf
* soft nofile 65536
* hard nofile 65536
vim /etc/security/limits.d/90-nproc.conf
找到如下内容:
soft nproc 1024
修改为
soft nproc 2048
vi /etc/sysctl.conf
添加下面配置:
vm.max_map_count=655360
并执行命令:
sysctl -p