Manual marvel plugin install not working

When I run:

./bin/plugin -i elasticsearch/marvel/latest

I get:

ERROR: unknown command [-i]. Use [-h] option to list available commands

When I try:

./bin/plugin install elasticsearch/marvel/latest

I get:

-> Installing elasticsearch/marvel/latest...
Trying https://download.elastic.co/elasticsearch/marvel/marvel-latest.zip ...
Trying https://search.maven.org/remotecontent?filepath=elasticsearch/marvel/latest/marvel-latest.zip ...
Trying https://oss.sonatype.org/service/local/repositories/releases/content/elasticsearch/marvel/latest/marvel-latest.zip ...
Trying https://github.com/elasticsearch/marvel/archive/latest.zip ...
Trying https://github.com/elasticsearch/marvel/archive/master.zip ...
ERROR: failed to download out of all possible locations..., use --verbose to get detailed information

Detail error is Connection Refused.

When I download the marvel zip file and try the manual install instruction:

bin/plugin install file:///var/elasticsearch-2.0.0/marvel-1.3.1.zip

I get this:

Downloading ....................DONE
Verifying file:/var/elasticsearch-2.0.0/marvel-1.3.1.zip checksums if available ...
NOTE: Unable to verify checksum for downloaded plugin (unable to find .sha1 or .md5 file to verify)
ERROR: Could not find plugin descriptor 'plugin-descriptor.properties' in plugin zip

Things are quite hard here.

Well not that much if you read the doc: Installing Marvel | Marvel Documentation [2.4] | Elastic

I am afraid the instructions on that page is what I am trying. The elastic search installers fail, but the kibana one works:

$  bin/plugin install license file:///var/elasticsearch-2.0.0/license-2.0.0.zip
-> Installing license...
Trying https://download.elastic.co/elasticsearch/release/org/elasticsearch/plugin/license/2.0.0/license-2.0.0.zip ...
ERROR: failed to download out of all possible locations..., use --verbose to get detailed information

You see it is trying to go to the internet to download this.

Only the kibana plugin installer is picking up the local file and working:

$ bin/kibana plugin --install marvel --url file:///var/elasticsearch-2.0.0/marvel-2.0.0.tar.gz
Installing marvel
Attempting to extract from file:///var/elasticsearch-2.0.0/marvel-2.0.0.tar.gz
Extraction complete
Optimizing and caching browser bundles...
Plugin installation complete

However, as I was writing this, I have found the problem. The documentation need to be updated. Here's the right command for offline installation:

plugin install file:/path/to/my-plugin-1.0.0.zip

The --help command shows the right instruction. The documentation is wrong.

Also there seems to be discrepancy in the way the bin/plugin works between elasticsearch, kibana, logstash. They have different parameters, different file:// syntax.

Either try:

bin/plugin install license

or

bin/plugin install file:///var/elasticsearch-2.0.0/license-2.0.0.zip

It seems that there is a problem with the git repository called during the marvel plugin installation

Trying https://github.com/elasticsearch/marvel/archive/master.zip ...
Failed: FileNotFoundException[https://github.com/elasticsearch/marvel/archive/master.zip]; nested: FileNotFoundException[https://github.com/elasticsearch/marvel/archive/master.zip];

What are you exactly doing @camel_113 and with which elasticsearch version?

Ok I apologize, I probably did the same mistake as @Omar_Al_Zabir (I guess) :-). I followed the Elasticsearch Definitive Guide whis is valid for version 1.4 :cry: sorry... But maybe it should be specified Elasticsearch: The Definitive Guide[1.4] :yum: