# plugin install , on 5.1.2-12

**URL:** <https://forum.search-guard.com/t/plugin-install-on-5-1-2-12/458>\
**Category:** Search Guard\
**Created:** [May 22, 2017, 5:36pm UTC](https://forum.search-guard.com/t/plugin-install-on-5-1-2-12/458 "2017-05-22T17:36:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![MARCELO\_SAIED](https://avatars.discourse-cdn.com/v4/letter/m/57b2e6/32.png) [@MARCELO\_SAIED](https://forum.search-guard.com/u/MARCELO_SAIED)\
**Post date:** [May 22, 2017, 5:36pm UTC](https://forum.search-guard.com/t/plugin-install-on-5-1-2-12/458/1 "2017-05-22T17:36:49Z")

</div>

Hi,

following the steps for ofline install at [https://github.com/floragunncom/search-guard-docs/blob/master/installation.md](https://github.com/floragunncom/search-guard-docs/blob/master/installation.md)

**Search Guard 5**

- Download the [Search Guard 5 version matching your Elasticsearch version](https://github.com/floragunncom/search-guard/wiki) from Maven Central:
  - [All versions of Search Guard 5](http://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22com.floragunn%22%20AND%20a%3A%22search-guard-5%22)
  - Download the **zip file** of the Search Guard plugin

- Change to the directory of your Elasticsearch installation and type:

```auto
i have downloaded the zip ftom http://search.maven.org/remotecontent?filepath=com/floragunn/search-guard-5/5.1.2-12/search-guard-5-5.1.2-12.zip

```

after stopping elasticsearch i run ar root → bin/elasticsearch-plugin install -b file://root/search-guard-5-5.1.2-12.zip  
and i get the following error.  
i have done some search , and seems to me , that there is some issue by using root user. i wanted to use elasticsearch user, but it do not exist . yet when i run the elasticsearch service , the elastise user is running.  
i will appreciate some indications on how to do this pluggin install.  
thanks

→ Downloading file://root/search-guard-5-5.1.2-12.zip  
Exception in thread “main” java.net.UnknownHostException: root  
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:184)  
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:957)  
at sun.net.ftp.impl.FtpClient.tryConnect(FtpClient.java:917)  
at sun.net.ftp.impl.FtpClient.connect(FtpClient.java:1012)  
at sun.net.ftp.impl.FtpClient.connect(FtpClient.java:998)  
at sun.net.www.protocol.ftp.FtpURLConnection.connect(FtpURLConnection.java:294)  
at sun.net.www.protocol.ftp.FtpURLConnection.getInputStream(FtpURLConnection.java:393)  
at org.elasticsearch.plugins.InstallPluginCommand.downloadZip(InstallPluginCommand.java:279)  
at org.elasticsearch.plugins.InstallPluginCommand.download(InstallPluginCommand.java:254)  
at org.elasticsearch.plugins.InstallPluginCommand.execute(InstallPluginCommand.java:210)  
at org.elasticsearch.plugins.InstallPluginCommand.execute(InstallPluginCommand.java:195)  
at org.elasticsearch.cli.SettingCommand.execute(SettingCommand.java:54)  
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)

---

<div class="post-metadata">

**Author:** ![jkressin](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.search-guard.com/jkressin/32/9_2.png) [@jkressin](https://forum.search-guard.com/u/jkressin)\
**Post date:** [May 22, 2017, 5:54pm UTC](https://forum.search-guard.com/t/plugin-install-on-5-1-2-12/458/2 "2017-05-22T17:54:35Z")

</div>

You’re missing a slash:

Instead of:

bin/elasticsearch-plugin install -b file://root/search-guard-5-5.1.2-12.zip

try:

bin/elasticsearch-plugin install -b file:///root/search-guard-5-5.1.2-12.zip

> **···**
>
> On Monday, May 22, 2017 at 7:36:49 PM UTC+2, MARCELO SAIED wrote:
> 
> > Hi,
> > 
> > following the steps for ofline install at [https://github.com/floragunncom/search-guard-docs/blob/master/installation.md](https://github.com/floragunncom/search-guard-docs/blob/master/installation.md)
> > 
> > **Search Guard 5**
> 
> > - Download the [Search Guard 5 version matching your Elasticsearch version](https://github.com/floragunncom/search-guard/wiki) from Maven Central:
> > - [All versions of Search Guard 5](http://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22com.floragunn%22%20AND%20a%3A%22search-guard-5%22)
> > - Download the **zip file** of the Search Guard plugin
> > 
> > - Change to the directory of your Elasticsearch installation and type:
> > 
> > ```auto
> > i have downloaded the zip ftom [http://search.maven.org/remotecontent?filepath=com/floragunn/search-guard-5/5.1.2-12/search-guard-5-5.1.2-12.zip](http://search.maven.org/remotecontent?filepath=com/floragunn/search-guard-5/5.1.2-12/search-guard-5-5.1.2-12.zip)
> > 
> > ```
> > 
> > after stopping elasticsearch i run ar root → bin/elasticsearch-plugin install -b file://root/search-guard-5-5.1.2-12.zip  
> > and i get the following error.  
> > i have done some search , and seems to me , that there is some issue by using root user. i wanted to use elasticsearch user, but it do not exist . yet when i run the elasticsearch service , the elastise user is running.  
> > i will appreciate some indications on how to do this pluggin install.  
> > thanks
> > 
> > → Downloading file://root/search-guard-5-5.1.2-12.zip  
> > Exception in thread “main” java.net.UnknownHostException: root  
> > at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:184)  
> > 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:957)  
> > at sun.net.ftp.impl.FtpClient.tryConnect(FtpClient.java:917)  
> > at sun.net.ftp.impl.FtpClient.connect(FtpClient.java:1012)  
> > at sun.net.ftp.impl.FtpClient.connect(FtpClient.java:998)  
> > at sun.net.www.protocol.ftp.FtpURLConnection.connect(FtpURLConnection.java:294)  
> > at sun.net.www.protocol.ftp.FtpURLConnection.getInputStream(FtpURLConnection.java:393)  
> > at org.elasticsearch.plugins.InstallPluginCommand.downloadZip(InstallPluginCommand.java:279)  
> > at org.elasticsearch.plugins.InstallPluginCommand.download(InstallPluginCommand.java:254)  
> > at org.elasticsearch.plugins.InstallPluginCommand.execute(InstallPluginCommand.java:210)  
> > at org.elasticsearch.plugins.InstallPluginCommand.execute(InstallPluginCommand.java:195)  
> > at org.elasticsearch.cli.SettingCommand.execute(SettingCommand.java:54)  
> > 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)

---

<div class="post-metadata">

**Author:** ![MARCELO\_SAIED](https://avatars.discourse-cdn.com/v4/letter/m/57b2e6/32.png) [@MARCELO\_SAIED](https://forum.search-guard.com/u/MARCELO_SAIED)\
**Post date:** [May 22, 2017, 7:44pm UTC](https://forum.search-guard.com/t/plugin-install-on-5-1-2-12/458/3 "2017-05-22T19:44:03Z")

</div>

Thanks !!! very much . it works 🙂

> **···**
>
> On Monday, May 22, 2017 at 2:54:35 PM UTC-3, Jochen Kressin wrote:
> 
> > You’re missing a slash:
> 
> > Instead of:
> 
> > 
> 
> > bin/elasticsearch-plugin install -b file://root/search-guard-5-5.1.2-12.zip
> > 
> > try:
> 
> > 
> 
> > bin/elasticsearch-plugin install -b file:///root/search-guard-5-5.1.2-12.zip
> 
> > On Monday, May 22, 2017 at 7:36:49 PM UTC+2, MARCELO SAIED wrote:
> > 
> > > Hi,
> > > 
> > > following the steps for ofline install at [https://github.com/floragunncom/search-guard-docs/blob/master/installation.md](https://github.com/floragunncom/search-guard-docs/blob/master/installation.md)
> > > 
> > > **Search Guard 5**
> 
> > > - Download the [Search Guard 5 version matching your Elasticsearch version](https://github.com/floragunncom/search-guard/wiki) from Maven Central:
> > > - [All versions of Search Guard 5](http://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22com.floragunn%22%20AND%20a%3A%22search-guard-5%22)
> > > - Download the **zip file** of the Search Guard plugin
> > > 
> > > - Change to the directory of your Elasticsearch installation and type:
> > > 
> > > ```auto
> > > i have downloaded the zip ftom [http://search.maven.org/remotecontent?filepath=com/floragunn/search-guard-5/5.1.2-12/search-guard-5-5.1.2-12.zip](http://search.maven.org/remotecontent?filepath=com/floragunn/search-guard-5/5.1.2-12/search-guard-5-5.1.2-12.zip)
> > > 
> > > ```
> > > 
> > > after stopping elasticsearch i run ar root → bin/elasticsearch-plugin install -b file://root/search-guard-5-5.1.2-12.zip  
> > > and i get the following error.  
> > > i have done some search , and seems to me , that there is some issue by using root user. i wanted to use elasticsearch user, but it do not exist . yet when i run the elasticsearch service , the elastise user is running.  
> > > i will appreciate some indications on how to do this pluggin install.  
> > > thanks
> > > 
> > > → Downloading file://root/search-guard-5-5.1.2-12.zip  
> > > Exception in thread “main” java.net.UnknownHostException: root  
> > > at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:184)  
> > > 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:957)  
> > > at sun.net.ftp.impl.FtpClient.tryConnect(FtpClient.java:917)  
> > > at sun.net.ftp.impl.FtpClient.connect(FtpClient.java:1012)  
> > > at sun.net.ftp.impl.FtpClient.connect(FtpClient.java:998)  
> > > at sun.net.www.protocol.ftp.FtpURLConnection.connect(FtpURLConnection.java:294)  
> > > at sun.net.www.protocol.ftp.FtpURLConnection.getInputStream(FtpURLConnection.java:393)  
> > > at org.elasticsearch.plugins.InstallPluginCommand.downloadZip(InstallPluginCommand.java:279)  
> > > at org.elasticsearch.plugins.InstallPluginCommand.download(InstallPluginCommand.java:254)  
> > > at org.elasticsearch.plugins.InstallPluginCommand.execute(InstallPluginCommand.java:210)  
> > > at org.elasticsearch.plugins.InstallPluginCommand.execute(InstallPluginCommand.java:195)  
> > > at org.elasticsearch.cli.SettingCommand.execute(SettingCommand.java:54)  
> > > 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)

---

<div class="post-metadata">

**Author:** ![jkressin](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.search-guard.com/jkressin/32/9_2.png) [@jkressin](https://forum.search-guard.com/u/jkressin)\
**Post date:** [May 22, 2017, 8:59pm UTC](https://forum.search-guard.com/t/plugin-install-on-5-1-2-12/458/4 "2017-05-22T20:59:29Z")

</div>

Glad I could help!

> **···**
>
> On Monday, May 22, 2017 at 9:44:03 PM UTC+2, MARCELO SAIED wrote:
> 
> > Thanks !!! very much . it works 🙂
> > 
> > On Monday, May 22, 2017 at 2:54:35 PM UTC-3, Jochen Kressin wrote:
> > 
> > > You’re missing a slash:
> 
> > > Instead of:
> 
> > >
> 
> > > bin/elasticsearch-plugin install -b file://root/search-guard-5-5.1.2-12.zip
> > > 
> > > try:
> 
> > >
> 
> > > bin/elasticsearch-plugin install -b file:///root/search-guard-5-5.1.2-12.zip
> 
> > > On Monday, May 22, 2017 at 7:36:49 PM UTC+2, MARCELO SAIED wrote:
> > > 
> > > > Hi,
> > > > 
> > > > following the steps for ofline install at [https://github.com/floragunncom/search-guard-docs/blob/master/installation.md](https://github.com/floragunncom/search-guard-docs/blob/master/installation.md)
> > > > 
> > > > **Search Guard 5**
> 
> > > > - Download the [Search Guard 5 version matching your Elasticsearch version](https://github.com/floragunncom/search-guard/wiki) from Maven Central:
> > > > - [All versions of Search Guard 5](http://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22com.floragunn%22%20AND%20a%3A%22search-guard-5%22)
> > > > - Download the **zip file** of the Search Guard plugin
> > > > 
> > > > - Change to the directory of your Elasticsearch installation and type:
> > > > 
> > > > ```auto
> > > > i have downloaded the zip ftom [http://search.maven.org/remotecontent?filepath=com/floragunn/search-guard-5/5.1.2-12/search-guard-5-5.1.2-12.zip](http://search.maven.org/remotecontent?filepath=com/floragunn/search-guard-5/5.1.2-12/search-guard-5-5.1.2-12.zip)
> > > > 
> > > > ```
> > > > 
> > > > after stopping elasticsearch i run ar root → bin/elasticsearch-plugin install -b file://root/search-guard-5-5.1.2-12.zip  
> > > > and i get the following error.  
> > > > i have done some search , and seems to me , that there is some issue by using root user. i wanted to use elasticsearch user, but it do not exist . yet when i run the elasticsearch service , the elastise user is running.  
> > > > i will appreciate some indications on how to do this pluggin install.  
> > > > thanks
> > > > 
> > > > → Downloading file://root/search-guard-5-5.1.2-12.zip  
> > > > Exception in thread “main” java.net.UnknownHostException: root  
> > > > at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:184)  
> > > > 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:957)  
> > > > at sun.net.ftp.impl.FtpClient.tryConnect(FtpClient.java:917)  
> > > > at sun.net.ftp.impl.FtpClient.connect(FtpClient.java:1012)  
> > > > at sun.net.ftp.impl.FtpClient.connect(FtpClient.java:998)  
> > > > at sun.net.www.protocol.ftp.FtpURLConnection.connect(FtpURLConnection.java:294)  
> > > > at sun.net.www.protocol.ftp.FtpURLConnection.getInputStream(FtpURLConnection.java:393)  
> > > > at org.elasticsearch.plugins.InstallPluginCommand.downloadZip(InstallPluginCommand.java:279)  
> > > > at org.elasticsearch.plugins.InstallPluginCommand.download(InstallPluginCommand.java:254)  
> > > > at org.elasticsearch.plugins.InstallPluginCommand.execute(InstallPluginCommand.java:210)  
> > > > at org.elasticsearch.plugins.InstallPluginCommand.execute(InstallPluginCommand.java:195)  
> > > > at org.elasticsearch.cli.SettingCommand.execute(SettingCommand.java:54)  
> > > > 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)
