I created my own ES plugin some time ago using ES 0.20.1. Fine. Today I thought that I would return to this project and first try to redo it in the latest version (0.20.6), since I already did this before from 0.19.8 to 0.20.1.
So, I updated the dependency to use 0.20.6 lib, ran my tests (everything went) and built the plugin. (I use maven)
This generated a file with a name elasticsearch-MyPlugin-0.20.6.zipthat contains jarmyplugin-0.0.1-SNAPSHOT-jar-with-dependencies.jar
Then, as usual, I deploy my plugin with
sudo /usr/share/elasticsearch/bin/plugin -url /path/to/foler/containing/zipfile -install MyPlugin
This is useful for work ... but now it causes the following error:
-> Installing MyPlugin...
Failed to install MyPlugin, reason: no protocol: /path/to/foler/containing/zipfile
So, I returned to what the ES documentation says about installing the plugin .
sudo /usr/share/elasticsearch/bin/plugin -url file:///path/to/foler/containing/zipfile -install elasticsearch-MyPlugin-0.20.6
Here's the conclusion:
-> Installing elasticsearch-MyPlugin-0.20.6...
Trying file:/path/to/foler/containing/zipfile...
Downloading .DONE
failed to extract plugin [/usr/share/elasticsearch/plugins/elasticsearch-MyPlugin-0.20.6.zip]: ZipException[error in opening zip file]
, es-plugin.properties, .
, , / , , , .