gpt4 book ai didi

elasticsearch - 安装ik分析器时未发现plugin-descriptor.properties错误

转载 作者:行者123 更新时间:2023-12-03 00:31:51 54 4
gpt4 key购买 nike

我正在尝试在elasticsearch中安装ik分析,ik源来自以下位置:
GitHub

我的步骤来自自述文件和来自互联网的一些资料

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

有人可以帮我吗?

最佳答案

这是由目录错误引起的。
当我解压缩文件elasticsearch-analysis-ik-*。zip时,它会创建一个文件夹并将文件放入其中,并且“... / plugins / analysis-ik /”看起来与新路径相似,我没有注意到那...............
错误有多低......

关于elasticsearch - 安装ik分析器时未发现plugin-descriptor.properties错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36303541/

54 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com