docker exec -it es /bin/bash ./bin/elasticsearch-plugin install https://github.com/medcl/elasticsearch-analysis-ik/releases/download/v7.12.1/elasticsearch-analysis-ik-7.12.1.zip exit docker restart es
也可以手动解压,然后重启es完成插件载入
1 2 3 4 5
wget https://github.com/medcl/elasticsearch-analysis-ik/releases/download/v7.12.1/elasticsearch-analysis-ik-7.12.1.zip mv ./elasticsearch-analysis-ik-7.12.1.zip /root/es/es-plugins/ cd /root/es/es-plugins/ unzip elasticsearch-analysis-ik-7.12.1.zip docker restart es
如果是es集群,安装完插件后需要重启整个集群才可以完成插件载入
部署pinyin分词器
通过中文拼音首字母就能查询到中文词组
1 2 3 4
docker exec -it es /bin/bash ./bin/elasticsearch-plugin install https://github.com/medcl/elasticsearch-analysis-pinyin/releases/download/v7.12.1/elasticsearch-analysis-pinyin-7.12.1.zip exit docker restart es
踩坑
拉取Kibana镜像时报错:no matching manifest for linux/arm64/v8 in the manifest list entries
原因
AppleSilicon与Intel不兼容
解决问题
强制拉取x86_64架构的镜像
--platform linux/x86_64:如果有多种架构的镜像版本,指定需要拉取的架构版本
1
docker pull --platform linux/x86_64 kibana:7.12.1
踩坑
运行Kibana容器后,访问管理页面不成功,前段报错:Kibana server is not ready yet,后端报错:License information could not be obtained from Elasticsearch due to Error: No Living connections erro、Unable to retrieve version information from Elasticsearch nodes.