Install marvel plugin for Elasticsearch

user2443476 picture user2443476 · May 12, 2014 · Viewed 36.7k times · Source

I have downloaded the version 1.1.0 of elasticsearch, and it's running well. I would like to install the marvel plugin, so I run the following command from the elasticsearch home directory (exactly like told in the official tutorial at http://www.elasticsearch.org/guide/en/marvel/current/#_simple_install):

bin\plugin -i elasticsearch/marvel/latest

But I get the following error:

-> 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

And this is what I get when I use -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

Answer

Orienteerix picture Orienteerix · May 14, 2014

You could try to go to the address http://download.elasticsearch.org/elasticsearch/marvel/marvel-latest.zip with your web browser. If you can download the marvel-latest.zip that way then you can manually create plugins directory under elasticsearch directory and unzip the marvel-latest.zip file in the plugins directory, i.e. the zip contents should go to plugins\marvel directory under ElasticSearch home directory.

Be sure to rename the unzipped directory from marvel-latest to marvel, so that address

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

suggested in the tutorial works.

I had somewhat similar problem as you with the ElasticSearch version 1.1.1. The

bin\plugin -i elasticsearch/marvel/latest

command gave FileNotFound errors though with the web browser I was able to download the plugin and get it work.