我试图在 elasticsearch 中安装 ik 分析, ik 来源,如果从这里开始: GitHub
我的步骤来自README文件和来自互联网的一些材料
cd elasticsearch-analysis-ik
mvn clean
mvn compile
mvn package
```
copy & unzip file #{project_path}/elasticsearch-analysis-ik/target/releases/elasticsearch-analysis-ik-*.zip to your elasticsearch's folder: plugins/ik;
copy elasticsearch-analysis-ik/conf/ik/ to elasticsearch-path/conf;
copy elasticsearch-analysis-ik-1.8.1-sources.jar to elasticsearch-path/lib;
add index.analysis.analyzer.ik.type : "ik" to file elasticsearch.yml.
但是当我重新启动 elasticseatch 时,我遇到了以下错误:
java.lang.IllegalStateException: Could not load plugin descriptor for existing plugin [analysis-ik]. Was the plugin built before 2.0?
at org.elasticsearch.plugins.PluginsService.getPluginBundles(PluginsService.java:380)
at org.elasticsearch.plugins.PluginsService.<init>(PluginsService.java:128)
at org.elasticsearch.node.Node.<init>(Node.java:146)
at org.elasticsearch.node.Node.<init>(Node.java:128)
at org.elasticsearch.node.NodeBuilder.build(NodeBuilder.java:145)
at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:178)
at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:285)
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:35)
Caused by: java.nio.file.NoSuchFileException: /home/qxf/softwares/elasticsearch-2.2.1/plugins/analysis-ik/plugin-descriptor.properties
at sun.nio.fs.UnixException.translateToIOException(UnixException.java:86)
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
at sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:214)
at java.nio.file.Files.newByteChannel(Files.java:361)
at java.nio.file.Files.newByteChannel(Files.java:407)
at java.nio.file.spi.FileSystemProvider.newInputStream(FileSystemProvider.java:384)
at java.nio.file.Files.newInputStream(Files.java:152)
at org.elasticsearch.plugins.PluginInfo.readFromProperties(PluginInfo.java:87)
at org.elasticsearch.plugins.PluginsService.getPluginBundles(PluginsService.java:378)
... 7 more
有人能帮助我吗?
答案 0 :(得分:-2)
这是由目录错误引起的。 当我解压缩文件elasticsearch-analysis-ik - * .zip时,它会创建一个文件夹并将文件放入其中,并且&#34; ... / plugins / analysis-ik /&#34;看起来类似于新路径,我没有注意到............... 错误有多低......