按照 github 国内 gitcode 的方式下载好最近的版本,
譬如我的es是8.7.1,而官网只打包了8.7.0的版本,解压重启es后,会报错:文章来源:https://www.toymoban.com/news/detail-766796.html
java.lang.IllegalArgumentException: Plugin [analysis-ik] was built for Elasticsearch version 8.7.0 but version 8.7.1 is running
at org.elasticsearch.plugins.PluginsUtils.verifyCompatibility(PluginsUtils.java:108) ~[elasticsearch-8.7.1.jar:?]
at org.elasticsearch.plugins.PluginsService.loadBundle(PluginsService.java:424) ~[elasticsearch-8.7.1.jar:?]
at org.elasticsearch.plugins.PluginsService.loadBundles(PluginsService.java:292) ~[elasticsearch-8.7.1.jar:?]
at org.elasticsearch.plugins.PluginsService.<init>(PluginsService.java:161) ~[elasticsearch-8.7.1.jar:?]
at org.elasticsearch.plugins.PluginsService.lambda$getPluginsServiceCtor$15(PluginsService.java:668) ~[elasticsearch-8.7.1.jar:?]
at org.elasticsearch.node.Node.<init>(Node.java:417) ~[elasticsearch-8.7.1.jar:?]
at org.elasticsearch.node.Node.<init>(Node.java:324) ~[elasticsearch-8.7.1.jar:?]
at org.elasticsearch.bootstrap.Elasticsearch$2.<init>(Elasticsearch.java:216) ~[elasticsearch-8.7.1.jar:?]
at org.elasticsearch.bootstrap.Elasticsearch.initPhase3(Elasticsearch.java:216) ~[elasticsearch-8.7.1.jar:?]
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:67) ~[elasticsearch-8.7.1.jar:?]
针对这种情况,只需要修改解压后的plugin-descriptor.properties文件,将里面的版本8.7.0改为8.7.1,重启es即可文章来源地址https://www.toymoban.com/news/detail-766796.html
version=8.7.1
elasticsearch.version= 8.7.1
到了这里,关于IK分词器版本与ES版本不一致的解决方式的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!