# UnknownHostException while installing license plugin windows

**URL:** <https://discuss.elastic.co/t/unknownhostexception-while-installing-license-plugin-windows/159303>\
**Category:** Elasticsearch\
**Tags:** license\
**Created:** [December 4, 2018, 7:28am UTC](https://discuss.elastic.co/t/unknownhostexception-while-installing-license-plugin-windows/159303 "2018-12-04T07:28:12Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dhiral\_Kaniya](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dhiral_kaniya/32/44525_2.png) [@Dhiral\_Kaniya](https://discuss.elastic.co/u/Dhiral_Kaniya)\
**Post date:** [December 4, 2018, 7:28am UTC](https://discuss.elastic.co/t/unknownhostexception-while-installing-license-plugin-windows/159303/1 "2018-12-04T07:28:13Z")

</div>

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](https://www.elastic.co/downloads/watcher). 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](https://www.elastic.co/guide/en/watcher/watcher-1.0/installing-watcher.html).

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

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [December 4, 2018, 8:44am UTC](https://discuss.elastic.co/t/unknownhostexception-while-installing-license-plugin-windows/159303/2 "2018-12-04T08:44:38Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Dhiral\_Kaniya](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dhiral_kaniya/32/44525_2.png) [@Dhiral\_Kaniya](https://discuss.elastic.co/u/Dhiral_Kaniya)\
**Post date:** [December 4, 2018, 8:50am UTC](https://discuss.elastic.co/t/unknownhostexception-while-installing-license-plugin-windows/159303/3 "2018-12-04T08:50:20Z")

</div>

@warkolm

I assume the [this](https://www.elastic.co/guide/en/watcher/watcher-1.0/installing-watcher.html) 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.?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [December 4, 2018, 8:52am UTC](https://discuss.elastic.co/t/unknownhostexception-while-installing-license-plugin-windows/159303/4 "2018-12-04T08:52:51Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Dhiral\_Kaniya](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dhiral_kaniya/32/44525_2.png) [@Dhiral\_Kaniya](https://discuss.elastic.co/u/Dhiral_Kaniya)\
**Post date:** [December 4, 2018, 9:00am UTC](https://discuss.elastic.co/t/unknownhostexception-while-installing-license-plugin-windows/159303/5 "2018-12-04T09:00:56Z")

</div>

@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](https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.5.1.zip)  
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

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [December 4, 2018, 9:01am UTC](https://discuss.elastic.co/t/unknownhostexception-while-installing-license-plugin-windows/159303/6 "2018-12-04T09:01:20Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Dhiral\_Kaniya](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dhiral_kaniya/32/44525_2.png) [@Dhiral\_Kaniya](https://discuss.elastic.co/u/Dhiral_Kaniya)\
**Post date:** [December 4, 2018, 9:11am UTC](https://discuss.elastic.co/t/unknownhostexception-while-installing-license-plugin-windows/159303/7 "2018-12-04T09:11:57Z")

</div>

Hi @warkolm

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

Best,  
Dhiral Kaniya.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [January 1, 2019, 9:12am UTC](https://discuss.elastic.co/t/unknownhostexception-while-installing-license-plugin-windows/159303/8 "2019-01-01T09:12:06Z")

</div>

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