我已经下载了弹性搜索的1.1.0版本,并且运行良好。我想安装marvel插件,所以我从elasticsearch主目录运行以下命令(就像在http://www.elasticsearch.org/guide/en/marvel/current/#_simple_install的官方教程中所说的那样):
bin\plugin -i elasticsearch/marvel/latest
但是我收到以下错误:
-> Installing elasticsearch/marvel/latest...
Trying http://download.elasticsearch.org/elasticsearch/marvel/marvel-latest.zip.
..
Trying http://search.maven.org/remotecontent?filepath=elasticsearch/marvel/lates
t/marvel-latest.zip...
Trying https://oss.sonatype.org/service/local/repositories/releases/content/elas
ticsearch/marvel/latest/marvel-latest.zip...
Trying https://github.com/elasticsearch/marvel/archive/vlatest.zip...
Trying https://github.com/elasticsearch/marvel/archive/master.zip...
Failed to install elasticsearch/marvel/latest, reason: failed to download out of
all possible locations..., use -verbose to get detailed information
这是我使用-verbose时得到的:
-> Installing elasticsearch/marvel/latest...
Trying http://download.elasticsearch.org/elasticsearch/marvel/marvel-latest.zip.
..
Failed: UnknownHostException[download.elasticsearch.org]
Trying http://search.maven.org/remotecontent?filepath=elasticsearch/marvel/lates
t/marvel-latest.zip...
Failed: UnknownHostException[search.maven.org]
Trying https://oss.sonatype.org/service/local/repositories/releases/content/elas
ticsearch/marvel/latest/marvel-latest.zip...
Failed: UnknownHostException[oss.sonatype.org]
Trying https://github.com/elasticsearch/marvel/archive/vlatest.zip...
Failed: UnknownHostException[github.com]
Trying https://github.com/elasticsearch/marvel/archive/master.zip...
Failed: UnknownHostException[github.com]
Failed to install elasticsearch/marvel/latest, reason: failed to download out of
all possible locations..., use -verbose to get detailed information
答案 0 :(得分:30)
您可以尝试使用网络浏览器转到地址http://download.elasticsearch.org/elasticsearch/marvel/marvel-latest.zip。如果您可以通过这种方式下载marvel-latest.zip,那么您可以在elasticsearch目录下手动创建plugins目录并解压缩插件目录中的marvel-latest.zip文件,即zip内容应该转到 ElasticSearch主目录下的plugins \ marvel目录。
请务必将解压后的目录从marvel-latest重命名为marvel,以便将该地址重命名为
http://any-server-in-cluster:9200/_plugin/marvel/
在教程中提出了建议。
我和ElasticSearch版本1.1.1有类似的问题。在
bin\plugin -i elasticsearch/marvel/latest
命令给出了FileNotFound错误,但是我可以通过Web浏览器下载插件并使其正常工作。
答案 1 :(得分:26)
适用于Elasticsearch 2.0+和Kibana 4.2+ 根据{{3}}
第1步:将Marvel安装到Elasticsearch:
/path/to/elasticsearch/bin/./plugin install license
/path/to/elasticsearch/bin/./plugin install marvel-agent
第2步:将Marvel安装到Kibana
/path/to/kibana/bin/./kibana plugin --install elasticsearch/marvel/latest
第3步:启动Elasticsearch和Kibana
/path/to/elasticsearch/bin/./elasticsearch
/path/to/kibana/bin/./kibana
第4步:导航至https://www.elastic.co/downloads/marvel
第5步:将Sense安装到Kibana:
/path/to/kibana/bin/./kibana plugin --install elastic/sense
答案 2 :(得分:6)
这对我有用:
cd /usr/share/elasticsearch/bin
./plugin -i elasticsearch/marvel/latest
输出:
-> Installing elasticsearch/marvel/latest...
Trying http://download.elasticsearch.org/elasticsearch/marvel/marvel-latest.zip...
Downloading ........................................DONE
Installed elasticsearch/marvel/latest into /usr/share/elasticsearch/plugins/marvel
编辑:许可安装
./plugin -i elasticsearch/license/latest
答案 3 :(得分:3)
以管理员身份运行您的CMD,最新的奇迹下载将开始。
答案 4 :(得分:2)
您可以在此处访问更多Elasticsearch插件:https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-plugins.html
安装用于Elasticsearch的插件保存在'../usr/share/elasticsearch'文件夹中(默认情况下)。
要安装Marvel插件,您可以这样做:
cd ../usr/share/elasticsearch
bin/plugin -i elasticsearch/marvel/latest
Acessible in:https://www.elastic.co/guide/en/marvel/current/_installation.html
答案 5 :(得分:1)
如果您支持代理,请尝试使用代理运行。 转到elasticsearch安装路径。
在我的情况下>的/ usr /共享/ elasticsearch
cd /usr/share/elasticsearch
bin/plugin -DproxyPort=<porxyPort> -DproxyHost=<proxyHostDNSorIP> install license
bin/plugin -DproxyPort=<porxyPort> -DproxyHost=<proxyHostDNSorIP> install shield
答案 6 :(得分:0)
您可以尝试手动安装。以下是步骤 -