2

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.

Zack
  • 13,454
  • 24
  • 75
  • 113

1 Answers1

1

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

philipskokoh
  • 103
  • 6
  • This was indeed the issue. I had forgotten that I asked this. But essentially, the command needed the proxyPort as well as the proxyHost. We had changed proxies recently at the office, which is why it was getting messed up. – Zack Jun 30 '16 at 15:30