UnknownHostException while installing license plugin windows


(Dhiral Kaniya) #1

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
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
at sun.net.www.protocol.ftp.FtpURLConnection.getInputStream(FtpURLConnec
at org.elasticsearch.plugins.InstallPluginCommand.downloadZip(InstallPlu
at org.elasticsearch.plugins.InstallPluginCommand.download(InstallPlugin
at org.elasticsearch.plugins.InstallPluginCommand.execute(InstallPluginC
at org.elasticsearch.plugins.InstallPluginCommand.execute(InstallPluginC
at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwar
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:1
at org.elasticsearch.cli.MultiCommand.execute(MultiCommand.java:77)
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:1
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).

(Mark Walkom) #2

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

(Dhiral Kaniya) #3


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.?

(Mark Walkom) #4

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

(Dhiral Kaniya) #5


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.


(Mark Walkom) #6

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

(Dhiral Kaniya) #7

Hi @warkolm

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

Dhiral Kaniya.

(system) closed #8

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