Error While Installing Elastic search plugins

Installing the ICU analysis 7.3.1. for Elastic Search 7.3.1 unfortunately I am getting a java error

ElasticSearchJavaError
.C:\Program Files\Elastic\Elasticsearch\7.3.1\bin>elasticsearch-plugin.bat instal
l path\analysis-icu-7.3.1.zip
-> Downloading path\analysis-icu-7.3.1.zip
Exception in thread "main" java.net.MalformedURLException: unknown protocol: c
at java.base/java.net.URL.(URL.java:652)
at java.base/java.net.URL.(URL.java:541)
at java.base/java.net.URL.(URL.java:488)
at org.elasticsearch.plugins.InstallPluginCommand.downloadZip(InstallPlu
ginCommand.java:375)
at org.elasticsearch.plugins.InstallPluginCommand.download(InstallPlugin
Command.java:278)
at org.elasticsearch.plugins.InstallPluginCommand.execute(InstallPluginC
ommand.java:229)
at org.elasticsearch.plugins.InstallPluginCommand.execute(InstallPluginC
ommand.java:216)
at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwar
eCommand.java:86)
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:1
24)
at org.elasticsearch.cli.MultiCommand.execute(MultiCommand.java:77)
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:1
24)
at org.elasticsearch.cli.Command.main(Command.java:90)
at org.elasticsearch.plugins.PluginCli.main(PluginCli.java:47)

please do not put screenshots in here, and properly format your code snippets. This forums supports markdown, please make use of it. Thanks!

You have to specify a URL when installing a plugin. If the plugin is stored locally already, you can use file:// as a prefix. That said, running elasticsearch-plugin install analysis-icu should work out of the box, if you have an internet connection.

HI Alexander,
I passed the following commands to install the plugin:

  1. elasticsearch-plugin.bat install file:\\C:\Users\myuser\Documents\analysis-icu-7.3.1.zip
    
  2. elasticsearch-plugin.bat install file://C:\Users\myuser\Documents\analysis-icu-7.3.1.zip
    
  3. elasticsearch-plugin.bat install file://C:/Users/myuser/Documents/analysis-icu-7.3.1.zip
    

For all of the above commands, I got the following error:

Exception in thread "main" java.net.UnknownHostException: C at java.base/java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocke
tImpl.java:220)

See https://www.elastic.co/guide/en/elasticsearch/plugins/current/plugin-management-custom-url.html

This works, now I know I was passing the wrong path and using the file:/// in wrong manner

Unfortunately with the correct path, now I am getting an error from the plugin-descriptor.properties

I executed the following command:
elasticsearch-plugin.bat install file:///C:/mypath/analysis-icu-7.3.1.zip

It gave me the following error:

Downloading file:///C:/mypath/analysis-icu-7.3.1.zip
[=================================================] 100%
Exception in thread "main" java.nio.file.NoSuchFileException: C:\Program Files\E
lastic\Elasticsearch\7.3.1\plugins.installing-1994739831823115814\plugin-descri
ptor.properties

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.