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:
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
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.
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 sorry... But maybe it should be specified Elasticsearch: The Definitive Guide[1.4]
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.