26

我下载了elasticsearch 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
4

7 回答 7

30

您可以尝试使用 Web 浏览器访问地址http://download.elasticsearch.org/elasticsearch/marvel/marvel-latest.zip 。如果你可以通过这种方式下载 marvel-latest.zip 那么你可以手动在 elasticsearch 目录下创建 plugins 目录,然后将 marvel-latest.zip 文件解压到 plugins 目录下,即 zip 内容应该到 ElasticSearch home 下的 plugins\marvel 目录下目录。

一定要把解压后的目录从 marvel-latest 重命名为 marvel,这样地址

http://any-server-in-cluster:9200/_plugin/marvel/

教程中建议的作品。

在 ElasticSearch 1.1.1 版中,我遇到了与您类似的问题。这

bin\plugin -i elasticsearch/marvel/latest

命令给出了 FileNotFound 错误,尽管使用网络浏览器我能够下载插件并使其工作。

于 2014-05-14T12:58:28.867 回答
27

根据https://www.elastic.co/downloads/marvel ,这适用于 Elasticsearch 2.0+ 和 Kibana 4.2+

第 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 步:导航到http://localhost:5601/app/marvel


第 5 步:将 Sense 安装到 Kibana:

/path/to/kibana/bin/./kibana plugin --install elastic/sense

于 2015-11-16T09:57:48.030 回答
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
于 2015-09-07T10:36:29.807 回答
3

以管理员身份运行您的 CMD,将开始最新的 Marvel 下载。

于 2015-04-02T08:30:01.790 回答
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

可访问:https ://www.elastic.co/guide/en/marvel/current/_installation.html

于 2015-07-30T00:21:57.877 回答
1

如果您落后于代理,请尝试使用代理运行。转到您的 elasticsearch 安装路径。

在我的情况下 > /usr/share/elasticsearch

cd /usr/share/elasticsearch

bin/plugin -DproxyPort=<porxyPort> -DproxyHost=<proxyHostDNSorIP> install license

bin/plugin -DproxyPort=<porxyPort> -DproxyHost=<proxyHostDNSorIP> install shield
于 2016-08-23T16:17:29.217 回答
0

您可以尝试手动安装。以下是步骤-

  1. 从这里下载 - https://download.elasticsearch.org/elasticsearch/marvel/marvel-latest.zip
  2. 将其放入您的服务器。
  3. cd 路径/到/elasticsearch-1.xx
  4. bin/plugin -i marvel -u file:///Path/where/you/placed/marvel-latest.zip
  5. 重新启动弹性搜索。
  6. 转到任何现代浏览器并编写 http://any-server-in-cluster:9200/_plugin/marvel/
于 2015-09-30T02:10:35.233 回答