如何为Elasticsearch安装Wikimedia Extra插件?

发布于 2025-02-03 02:37:35 字数 4215 浏览 2 评论 0原文

我正在尝试安装 org.mediawiki.mediawiki.search for Elasticsearch for Elasticsearch for Elasticsearch for弹药。我正在本地运行Elasticsearch 7.17.2,但是该插件似乎可用于Elasticsearch 7.10.2或以上。

当我尝试通过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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

我也只是我 2025-02-10 02:37:35

在这里

您将必须发布新版本的
每个新的Elasticsearch版本的插件。此版本已检查
加载插件时,Elasticsearch将拒绝在
使用不正确的elasticsearch.version。

存在插件

因此,您需要找到为您的Elasticsearch版本构建的插件,并且看起来它似乎不存在,或者您需要将elasticsearch降级到当前插件的版本,即7.10.2。

Here, it says

You will have to release a new version of the
plugin for each new elasticsearch release. This version is checked
when the plugin is loaded so Elasticsearch will refuse to start in the
presence of plugins with the incorrect elasticsearch.version.

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文