为Elasticsearch安装marvel插件

use*_*476 24 elasticsearch-marvel

我已经下载了版本1.1.0的elasticsearch,它运行良好.我想安装marvel插件,所以我从elasticsearch主目录运行以下命令(完全像官方教程http://www.elasticsearch.org/guide/en/marvel/current/#_simple_install中所述) :

bin\plugin -i elasticsearch/marvel/latest
Run Code Online (Sandbox Code Playgroud)

但是我收到以下错误:

-> 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
Run Code Online (Sandbox Code Playgroud)

这就是我使用-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
Run Code Online (Sandbox Code Playgroud)

Ori*_*rix 30

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

请务必将解压后的目录从marvel-latest重命名为marvel,以便将该地址重命名

http://any-server-in-cluster:9200/_plugin/marvel/
Run Code Online (Sandbox Code Playgroud)

在教程中提出了建议.

使用ElasticSearch版本1.1.1时,我遇到了类似的问题.该

bin\plugin -i elasticsearch/marvel/latest
Run Code Online (Sandbox Code Playgroud)

命令给了FileNotFound错误,但是我可以通过Web浏览器下载插件并使其正常工作.


Met*_*oyD 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


小智 6

这对我有用:

cd /usr/share/elasticsearch/bin
./plugin -i elasticsearch/marvel/latest
Run Code Online (Sandbox Code Playgroud)

输出:

-> 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
Run Code Online (Sandbox Code Playgroud)

编辑:许可证安装

./plugin -i elasticsearch/license/latest
Run Code Online (Sandbox Code Playgroud)