UnknownHostException while installing license plugin windows

Hi Team,

I have installed ELK stack on windows server 2016 with metricbeats.
Now I want to install watcher for configuring some alert on a specific scenario.

I have gone through with watcher link. I came to know that i need to install license and watcher plugin so i download license-2.4.6.zip and watcher-2.4.6.zip from this link.

I tried to execute a command to install the elastic-search plugin as below.
bin\elasticsearch-plugin install file://C:/Dhiral/license-2.4.6.zip

Here, I didn't get success to install plugin successfully instead I got some unknownHostException.

Error Trace :-
C:\Dhiral\elasticsearch-6.5.1\elasticsearch-6.5.1>bin\elasticsearch-plugin insta
ll file://C:/Dhiral/license-2.4.6.zip
-> Downloading file://C:/Dhiral/license-2.4.6.zip
Exception in thread "main" java.net.UnknownHostException: C
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java
:184)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
at java.net.Socket.connect(Socket.java:589)
at sun.net.ftp.impl.FtpClient.doConnect(FtpClient.java:962)
at sun.net.ftp.impl.FtpClient.tryConnect(FtpClient.java:924)
at sun.net.ftp.impl.FtpClient.connect(FtpClient.java:1019)
at sun.net.ftp.impl.FtpClient.connect(FtpClient.java:1005)
at sun.net.www.protocol.ftp.FtpURLConnection.connect(FtpURLConnection.ja
va:294)
at sun.net.www.protocol.ftp.FtpURLConnection.getInputStream(FtpURLConnec
tion.java:400)
at org.elasticsearch.plugins.InstallPluginCommand.downloadZip(InstallPlu
ginCommand.java:380)
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)

Can anyone help in that or suggest right way to install this two plugin(s).

Is there a reason you are using such an old version? 6.5.2 is the latest, 2.X is no longer supported.

@warkolm

I assume the this from where I download is latest release of license zip to me. if not then would you please provide resource link where I can download the latest release of License and watcher.?

If you install 6.5.1 then it's all bundled in.

@warkolm

I installed elasticsearch-6.5.1 but I didn't get any license.x-x-x.zip or watcher.x-x-x.zip.
Downloaded elastic-search link :- elastic-search downloaded link
I checked the following folders and i didn't get any license.x.x.x.zip or watcher.x.x.x.zip.

-/plugin
-/bin
-/bin/x-pack/
-/lib/
-/lib/tools/
-/lib/tools/plugin-cli

As I mentioned, they are bundled in there automatically, so you don't need to install them.

Hi @warkolm

I was following some old documentation for configuring email, alert and watcher in elasticsearch.
Thanks for your quick replies.

Best,
Dhiral Kaniya.

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