【问题标题】:Cannot install head plugin using bin/plugin tool (elasticsearch)无法使用 bin/plugin 工具 (elasticsearch) 安装 head 插件
【发布时间】:2016-06-29 09:51:15
【问题描述】:

我刚刚下载了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 文件夹中。

【问题讨论】:

    标签: authentication elasticsearch proxy elasticsearch-plugin elasticsearch-head


    【解决方案1】:

    您可能需要在参数中指定代理信息,例如主机和端口。检查此文档。 https://www.elastic.co/guide/en/elasticsearch/plugins/2.3/_other_command_line_parameters.html#_proxy_settings

    【讨论】:

    • 这确实是问题所在。我忘了我问过这个。但本质上,该命令需要 proxyPort 和 proxyHost。我们最近在办公室更换了代理,这就是它变得一团糟的原因。
    猜你喜欢
    • 2015-08-13
    • 1970-01-01
    • 1970-01-01
    • 2014-04-23
    • 2016-05-12
    • 1970-01-01
    • 1970-01-01
    • 2013-01-06
    • 1970-01-01
    相关资源
    最近更新 更多