我想安装elasticsearch HDFS插件。 elasticsearch版本为6.3.2。 霍杜普没有。
当您尝试运行插件时
./bin/elasticsearch-plugin install ./repository-hdfs-6.3.2.zip
->出现以下错误。
Commands
list - Lists installed elasticsearch plugins
install - Install a plugin
remove - removes a plugin from Elasticsearch
Non-option arguments:
command
Option Description
------ -----------
-h, --help show help
-s, --silent show minimal output
-v, --verbose show verbose output
ERROR: Unknown plugin ./repository-hdfs-6.3.2.zip
我也跑
./bin/elasticsearch-plugin install repository-hdfs
->出现以下错误。
Exception in thread "main" java.net.UnknownHostException: artifacts.elastic.co
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:184)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:589)
at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:668)
at sun.security.ssl.BaseSSLSocketImpl.connect(BaseSSLSocketImpl.java:173)
at sun.net.NetworkClient.doConnect(NetworkClient.java:180)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:432)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:527)
at sun.net.www.protocol.https.HttpsClient.<init>(HttpsClient.java:264)
at sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:367)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:191)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1105)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:999)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:177)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(HttpsURLConnectionImpl.java:153)
at org.elasticsearch.plugins.InstallPluginCommand.urlExists(InstallPluginCommand.java:325)
at org.elasticsearch.plugins.InstallPluginCommand.getElasticUrl(InstallPluginCommand.java:292)
at org.elasticsearch.plugins.InstallPluginCommand.download(InstallPluginCommand.java:248)
at org.elasticsearch.plugins.InstallPluginCommand.execute(InstallPluginCommand.java:223)
at org.elasticsearch.plugins.InstallPluginCommand.execute(InstallPluginCommand.java:210)
at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:86)
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124)
at org.elasticsearch.cli.MultiCommand.execute(MultiCommand.java:79)
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124)
at org.elasticsearch.cli.Command.main(Command.java:90)
at org.elasticsearch.plugins.PluginCli.main(PluginCli.java:48)
你知道如何解决吗?
答案 0 :(得分:0)
我通过使用正确的版本库-hdfs版本解决了该问题:
wget --no-check-certificate https://artifacts.elastic.co/downloads/elasticsearch-plugins/repository-hdfs/repository-hdfs-6.5.1.zip
bin/elasticsearch-plugin install file:///XXX/repository-hdfs-6.5.1.zip
请选择您的存储库-hdfs的版本:
wget --no-check-certificate https://artifacts.elastic.co/downloads/elasticsearch-plugins/repository-hdfs/repository-hdfs-X.X.X.zip