Search code examples
authenticationelasticsearchproxyelasticsearch-pluginelasticsearch-head

Cannot install head plugin using bin/plugin tool (elasticsearch)


I have just downloaded elasticsearch and I am trying to grab the head plugin

First I try this

sudo bin/plugin install mobz/elasticsearch-head --verbose

I get the error

Trying https://github.com/mobz/elasticsearch-head/archive/master.zip ...
Failed: UnknownHostException[github.com]

Now I try and add a few command line parameters

sudo bin/plugin -DproxyUser=<my proxy user> -DproxyPassword=<my proxy password> -DproxyHost=<my proxy user> -DproxyPort=<my proxy port> install mobz/elasticsearch-head --verbose

Now I get the error

Trying https://github.com/mobz/elasticsearch-head/archive/master.zip ...
Failed: IOException[Unable to tunnel through proxy. Proxy returns "HTTP/1.1 407 Proxy Authentication Required"]

Anyone have any advice here? I'm trying to use the tool that comes with elasticsearch, rather than go grab the plugin manually and plop it in the plugins folder.


Solution

  • You may need to specify proxy info such as host and port in the parameter. Check this documentation. https://www.elastic.co/guide/en/elasticsearch/plugins/2.3/_other_command_line_parameters.html#_proxy_settings