略微加速

略速 - 互联网笔记

es-ik插件安装

2020-11-27 leiting (4345阅读)

标签 Elasticsearch

1 mvn java打包工具

http://maven.apache.org/download.cgi# 最新版下载地址

http://blog.csdn.net/huwei2003/article/details/41822841

下载、移动至指定目录/usr/local、设置环境变量


2 ik安装

 https://github.com/medcl/elasticsearch-analysis-ik 下载地址

注意ik的版本要跟es的版本相匹配

参考文档:

http://blog.csdn.net/laoyang360/article/details/74090357?utm_source=itdadao&utm_medium=referral

(1)unzip file 解压 

(2)jar文件生成

/usr/local/apache-maven-3.5.2/bin/mvn clean package 

(3)新建ik目录 elasticsearch/plugins/ik

  (4) cp elasticsearch-analysis-ik-master/target/releases/elasticsearch-analysis-ik-5.4.0.zip 
/opt/elasticsearch/plugins/ik/

  (5) unzip解压 将所有文件cp到ik目录下 同时删除plugins目录下的临时文件

  (6) 修改配置文件 plugins/ik/config/IKAnalyzer.cfg.xml

  (7)重启es服务


https://github.com/medcl/elasticsearch-analysis-ik/archive/master.zip

3 一些报错处理

(1) 报错1 max file descriptors [4096] for elasticsearch process is too low, increase to at least [65536]

http://blog.csdn.net/weini1111/article/details/60468068

(2) 报错2 

max file descriptors [4096] for elasticsearch process is too low, increase to at least [65536]

http://blog.csdn.net/weini1111/article/details/60468068

http://blog.ihipop.info/2011/01/2053.html



北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3