如何为Elasticsearch安装Wikimedia Extra插件?
当我尝试通过Elasticsearch插件安装程序安装它时,如建议的在存储库中
$ ./bin/elasticsearch-plugin install org.wikimedia.search:extra:7.17.2-wmf1
-> Installing org.wikimedia.search:extra:7.17.2-wmf1
-> Downloading org.wikimedia.search:extra:7.17.2-wmf1 from maven central
-> Failed installing org.wikimedia.search:extra:7.17.2-wmf1
-> Rolling back org.wikimedia.search:extra:7.17.2-wmf1
-> Rolled back org.wikimedia.search:extra:7.17.2-wmf1
Exception in thread "main" java.io.FileNotFoundException: https://repo1.maven.org/maven2/org/wikimedia/search/extra/7.17.2-wmf1/extra-7.17.2-wmf1.zip
at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1993)
at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1589)
at java.base/sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:224)
at org.elasticsearch.plugins.cli.InstallPluginAction.downloadZip(InstallPluginAction.java:478)
at org.elasticsearch.plugins.cli.InstallPluginAction.downloadAndValidate(InstallPluginAction.java:558)
at org.elasticsearch.plugins.cli.InstallPluginAction.download(InstallPluginAction.java:328)
at org.elasticsearch.plugins.cli.InstallPluginAction.execute(InstallPluginAction.java:242)
at org.elasticsearch.plugins.cli.InstallPluginCommand.execute(InstallPluginCommand.java:88)
at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:77)
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:112)
at org.elasticsearch.cli.MultiCommand.execute(MultiCommand.java:95)
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:112)
at org.elasticsearch.cli.Command.main(Command.java:77)
at org.elasticsearch.plugins.cli.PluginCli.main(PluginCli.java:36)
而且,如果我指定了最新的可用版本,我会
$ ./bin/elasticsearch-plugin install org.wikimedia.search:extra:7.10.2-wmf1
-> Installing org.wikimedia.search:extra:7.10.2-wmf1
-> Downloading org.wikimedia.search:extra:7.10.2-wmf1 from maven central
[=================================================] 100%
Warning: sha512 not found, falling back to sha1. This behavior is deprecated and will be removed in a future release. Please update the plugin to use a sha512 checksum.
-> Failed installing org.wikimedia.search:extra:7.10.2-wmf1
-> Rolling back org.wikimedia.search:extra:7.10.2-wmf1
-> Rolled back org.wikimedia.search:extra:7.10.2-wmf1
Exception in thread "main" java.lang.IllegalArgumentException: Plugin [extra] was built for Elasticsearch version 7.10.2 but version 7.17.2 is running
at org.elasticsearch.plugins.PluginsService.verifyCompatibility(PluginsService.java:391)
at org.elasticsearch.plugins.cli.InstallPluginAction.loadPluginInfo(InstallPluginAction.java:831)
at org.elasticsearch.plugins.cli.InstallPluginAction.installPlugin(InstallPluginAction.java:887)
at org.elasticsearch.plugins.cli.InstallPluginAction.execute(InstallPluginAction.java:245)
at org.elasticsearch.plugins.cli.InstallPluginCommand.execute(InstallPluginCommand.java:88)
at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:77)
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:112)
at org.elasticsearch.cli.MultiCommand.execute(MultiCommand.java:95)
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:112)
at org.elasticsearch.cli.Command.main(Command.java:77)
at org.elasticsearch.plugins.cli.PluginCli.main(PluginCli.java:36)
注意到,在后者中,它下载了文件,但由于不匹配的Elasticsearch版本而拒绝安装它。
这是否意味着我无法为我的特定版本的Elasticsearch安装插件?我需要降级到7.10.2版以使用此插件吗?或者,也许我可以从其他地方下载适当的插件版本?
提前致谢!
I am trying to install the org.mediawiki.search extra plugin for elasticsearch. I am running elasticsearch 7.17.2 locally, however the plugin seems to be available for elasticsearch 7.10.2 or older.
When I try to install it through the elasticsearch plugin installer, as suggested in the repository, I get
$ ./bin/elasticsearch-plugin install org.wikimedia.search:extra:7.17.2-wmf1
-> Installing org.wikimedia.search:extra:7.17.2-wmf1
-> Downloading org.wikimedia.search:extra:7.17.2-wmf1 from maven central
-> Failed installing org.wikimedia.search:extra:7.17.2-wmf1
-> Rolling back org.wikimedia.search:extra:7.17.2-wmf1
-> Rolled back org.wikimedia.search:extra:7.17.2-wmf1
Exception in thread "main" java.io.FileNotFoundException: https://repo1.maven.org/maven2/org/wikimedia/search/extra/7.17.2-wmf1/extra-7.17.2-wmf1.zip
at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1993)
at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1589)
at java.base/sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:224)
at org.elasticsearch.plugins.cli.InstallPluginAction.downloadZip(InstallPluginAction.java:478)
at org.elasticsearch.plugins.cli.InstallPluginAction.downloadAndValidate(InstallPluginAction.java:558)
at org.elasticsearch.plugins.cli.InstallPluginAction.download(InstallPluginAction.java:328)
at org.elasticsearch.plugins.cli.InstallPluginAction.execute(InstallPluginAction.java:242)
at org.elasticsearch.plugins.cli.InstallPluginCommand.execute(InstallPluginCommand.java:88)
at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:77)
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:112)
at org.elasticsearch.cli.MultiCommand.execute(MultiCommand.java:95)
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:112)
at org.elasticsearch.cli.Command.main(Command.java:77)
at org.elasticsearch.plugins.cli.PluginCli.main(PluginCli.java:36)
And if I specify the latest available version, I get
$ ./bin/elasticsearch-plugin install org.wikimedia.search:extra:7.10.2-wmf1
-> Installing org.wikimedia.search:extra:7.10.2-wmf1
-> Downloading org.wikimedia.search:extra:7.10.2-wmf1 from maven central
[=================================================] 100%
Warning: sha512 not found, falling back to sha1. This behavior is deprecated and will be removed in a future release. Please update the plugin to use a sha512 checksum.
-> Failed installing org.wikimedia.search:extra:7.10.2-wmf1
-> Rolling back org.wikimedia.search:extra:7.10.2-wmf1
-> Rolled back org.wikimedia.search:extra:7.10.2-wmf1
Exception in thread "main" java.lang.IllegalArgumentException: Plugin [extra] was built for Elasticsearch version 7.10.2 but version 7.17.2 is running
at org.elasticsearch.plugins.PluginsService.verifyCompatibility(PluginsService.java:391)
at org.elasticsearch.plugins.cli.InstallPluginAction.loadPluginInfo(InstallPluginAction.java:831)
at org.elasticsearch.plugins.cli.InstallPluginAction.installPlugin(InstallPluginAction.java:887)
at org.elasticsearch.plugins.cli.InstallPluginAction.execute(InstallPluginAction.java:245)
at org.elasticsearch.plugins.cli.InstallPluginCommand.execute(InstallPluginCommand.java:88)
at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:77)
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:112)
at org.elasticsearch.cli.MultiCommand.execute(MultiCommand.java:95)
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:112)
at org.elasticsearch.cli.Command.main(Command.java:77)
at org.elasticsearch.plugins.cli.PluginCli.main(PluginCli.java:36)
Notice that, in the latter, it downloads the file but refuses to install it because of non-matching elasticsearch versions.
Does this mean that I just can't install the plugin for my specific version of elasticsearch? Do I need to downgrade to version 7.10.2 to use this plugin? Or perhaps I can download the appropriate version of the plugins from a different place?
Thanks in advance!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在这里
因此,您需要找到为您的Elasticsearch版本构建的插件,并且看起来它似乎不存在,或者您需要将elasticsearch降级到当前插件的版本,即7.10.2。
Here, it says
So you need to find the plugin which is build for your elasticsearch version, and it looks like it doesn't exist, or you need downgrade your elasticsearch to your current plugin's version, which is 7.10.2.