我刚刚下载了elasticsearch,正在尝试获取head plugin
首先我尝试一下
sudo bin/plugin install mobz/elasticsearch-head --verbose
我得到错误
Trying https://github.com/mobz/elasticsearch-head/archive/master.zip ...
Failed: UnknownHostException[github.com]
现在,我尝试添加一些命令行参数
sudo bin/plugin -DproxyUser=<my proxy user> -DproxyPassword=<my proxy password> -DproxyHost=<my proxy user> -DproxyPort=<my proxy port> install mobz/elasticsearch-head --verbose
现在我得到了错误
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"]
有人在这里有什么建议吗?我正在尝试使用elasticsearch随附的工具,而不是手动获取插件并将其放入plugins文件夹中。
最佳答案
您可能需要在参数中指定代理信息,例如主机和端口。查看此文档。
https://www.elastic.co/guide/en/elasticsearch/plugins/2.3/_other_command_line_parameters.html#_proxy_settings
关于authentication - 无法使用bin/plugin工具(elasticsearch)安装Head插件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37864474/