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

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?

Can you try with something like:

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

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)

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