Installing ElasticSearch plugins

I am trying to install the ElasticSearch plugin on Ubuntu 12.04 and the documentation is not helping me. The plugin is distributed like an ATM and I tried to install it using the plugin command with no apparent success:

[13:28:38][root@pre-staging:/usr/share/elasticsearch]$ curl -I file:///usr/share/elasticsearch/plugins-no/elasticsearch-knapsack-1.0.3.jar
Content-Length: 322631
Accept-ranges: bytes
Last-Modified: Thu, 13 Dec 2012 18:47:04 GMT
[13:29:56][root@pre-staging:/usr/share/elasticsearch]$ bin/plugin -url file:///usr/share/elasticsearch/plugins-no/elasticsearch-knapsack-1.0.3.jar
[13:30:01][root@pre-staging:/usr/share/elasticsearch]$ ls plugins
[13:30:03][root@pre-staging:/usr/share/elasticsearch]$

      

You can see the jar file exists, but when I install it nothing happens to the plugins directory. I also tried to manually add the jar to the plugins directory. I don't know if this should work or I will see something in the elasticsearch log if I do it right, but I don’t and I don’t see the behavior the documentation plugin does. I also followed closely the instructions for installing the plugin, https://github.com/jprante/elasticsearch-knapsack , which is nothing useful either (the installation cannot find anything remote files that it expects to install the plugin).

So the question is: How do I install this plugin? How can I tell if it's installed correctly?

+3


source to share


1 answer


The command plugin

doesn't do anything special, it just tries to download the zip file from different locations and extracts it to a specific subfolder under the plugins. Most of the plugins were used like GitHub, but since GitHub disabled the upload feature , there is a discussion on the best way to get around this. The plugins included in the elasticsearch command have been moved to download.elasticsearch.org

and the plugin command has been recently updated to reflect this change. Have a look at the issue and this blogpost about it.



Anyway, if you are having trouble using the plugin command, you can simply download the zip file and extract it to a specific subfolder under the plugins. After that, you need to restart elasticsearch node and you will see in the output a list of plugins that were found and loaded successfully during startup. Given your explanation, I guess you haven't created a backpack folder (or whatever name you prefer) under the plugins. Just create it and place the jar in this folder.

+9


source







All Articles