CentOS启动 ES 过程中遇到的问题
-
seccomp unavailable 错误
解决方法:elasticsearch.yml 配置
bootstrap.memory_lock: false
bootstrap.system_call_filter: false -
max file descriptors [4096] for elasticsearch process likely too low, increase to at least [65536]
解决方法:修改 /etc/security/limits.conf,配置:
hard nofile 80000
soft nofile 80000 -
max virtual memory areas vm.max_map_count [65530] is too low
解决方法:修改 /etc/sysctl.conf,添加 :
vm.max_map_count = 262144
然后 sysctl -p 生效 -
the default discovery settings are unsuitable...., last least one of [....] must be configured
解决方法:elasticsearch.yml 开启配置:
node.name: node-1
cluster.initial_master_nodes: ["node-1"]
关于下载安装的问题:
es、kibana、logstash均可在华为云开源镜像站搜索下载,全版本,超快:
(https://mirrors.huaweicloud.com/)
插件下载,以analysis-icu来说,需要离线下载安装:
下载地址(7.4.0版本):
(https://artifacts.elastic.co/downloads/elasticsearch-plugins/analysis-icu/analysis-icu-7.4.0.zip)
安装方法:
unix:sudo bin/elasticsearch-plugin install file:///path/to/plugin.zip
windows:bin\elasticsearch-plugin install file:///C:/path/to/plugin.zip