authentication - 无法使用bin/plugin工具(elasticsearch)安装Head插件

标签 authentication elasticsearch proxy elasticsearch-plugin elasticsearch-head

我刚刚下载了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/

相关文章:

database - InterSystems Caché - 如何访问 Caché Studio?

java - Android - JSONException 没有值(value)

elasticsearch - Axios - 请求 header 内容类型不存在于访问控制允许 header 列表中 - ElasticSearch

elasticsearch - Elasticsearch 文档存储

unicode - Elasticsearch对Unicode字符使用了错误的大小写折叠

javascript - 使用 Proxy 的可观察数组删除了数组功能

java - Netty 的基本身份 validator

xcode - 解析/Swift getObjectInBackgroundWithId 查询不起作用

android - 如何为webview设置SOCKS代理

php - 我如何将apache服务器配置为代理http ://localhost:3000/and exclude some URL?