# Offline X-Pack Install in Windows - Java.net unknownHostException

**URL:** <https://discuss.elastic.co/t/offline-x-pack-install-in-windows-java-net-unknownhostexception/91121>\
**Category:** Elasticsearch\
**Created:** [June 28, 2017, 2:32pm UTC](https://discuss.elastic.co/t/offline-x-pack-install-in-windows-java-net-unknownhostexception/91121 "2017-06-28T14:32:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ccampbell](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ccampbell/32/15320_2.png) [@ccampbell](https://discuss.elastic.co/u/ccampbell)\
**Post date:** [June 28, 2017, 2:32pm UTC](https://discuss.elastic.co/t/offline-x-pack-install-in-windows-java-net-unknownhostexception/91121/1 "2017-06-28T14:32:37Z")

</div>

Having trouble performing an offline install of X-Pack (to do a POC of X-Pack with our new ELK cluster).

I've got the 5.4.1 zip downloaded into a local directory and the plug-in script seems to have found it, but I get a Java exception error I attempt to run it:

> .\elasticsearch-plugin.bat install file://d:/source/x-pack-5.4.1.zip

-\> Downloading file://d:/source/x-pack-5.4.1.zip  
Exception in thread "main" java.net.UnknownHostException: d  
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 java.net.Socket.connect(Socket.java:538)  
at sun.net.ftp.impl.FtpClient.doConnect(FtpClient.java:964)  
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.java:294)  
at sun.net.www.protocol.ftp.FtpURLConnection.getInputStream(FtpURLConnection.java:400)  
at org.elasticsearch.plugins.InstallPluginCommand.downloadZip(InstallPluginCommand.java:282)  
at org.elasticsearch.plugins.InstallPluginCommand.download(InstallPluginCommand.java:257)  
at org.elasticsearch.plugins.InstallPluginCommand.execute(InstallPluginCommand.java:213)  
at org.elasticsearch.plugins.InstallPluginCommand.execute(InstallPluginCommand.java:199)  
at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:67)  
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:122)  
at org.elasticsearch.cli.MultiCommand.execute(MultiCommand.java:69)  
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:122)  
at org.elasticsearch.cli.Command.main(Command.java:88)  
at org.elasticsearch.plugins.PluginCli.main(PluginCli.java:47)

Any suggestions?

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [June 28, 2017, 4:16pm UTC](https://discuss.elastic.co/t/offline-x-pack-install-in-windows-java-net-unknownhostexception/91121/2 "2017-06-28T16:16:20Z")

</div>

Can you try with something like:

```auto
.\elasticsearch-plugin.bat install file:///D:/source/x-pack-5.4.1.zip

```

---

<div class="post-metadata">

**Author:** ![ccampbell](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ccampbell/32/15320_2.png) [@ccampbell](https://discuss.elastic.co/u/ccampbell)\
**Post date:** [June 28, 2017, 7:56pm UTC](https://discuss.elastic.co/t/offline-x-pack-install-in-windows-java-net-unknownhostexception/91121/3 "2017-06-28T19:56:26Z")

</div>

Dang - I missed the third '/' in the file command switch -- that was the trick, thanks for the help (I was trying file://D:/source/x-pack-5.4.1.zip)

---

<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:** [July 26, 2017, 7:56pm UTC](https://discuss.elastic.co/t/offline-x-pack-install-in-windows-java-net-unknownhostexception/91121/4 "2017-07-26T19:56:26Z")

</div>

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