Install local plugin


(thinusp) #1

This really shouldn't be hard, but I am struggling to install a plugin from
the local directory. I have tried ./bin/plugin -install where
the path is to the jar file, but that doesn't want to work. I've also
tried just copying the src directory to the plugin directory, but that
doesn't want to work either. I realise that this is something trivial, but
I just don't know how to install it. If you install it from the zip file,
what should be in the zip file? I tried using the .zip generated by maven
under the release folder, but that doesn't want to work. The closest I got
was by by specifying a file: url (./plugin -url file:/location) and then
-install the plugin, but that doesn't want to work. Here is the output:

./plugin -url file:../plugins/ -install elasticsearch-analysis-bb-1.3.0
-> Installing elasticsearch-analysis-bb-1.3.0...
Trying file:../plugins/...
Downloading .DONE
failed to extract plugin [/path/plugins/elasticsearch-analysis-bb-1.3.0.zip]
Identified as a _site plugin, moving to _site structure ...
Installed elasticsearch-analysis-bb-1.3.0

The path to the zip file is correct, but that does not want to work. It
destroys the zip file and creates a folder with the name of the file that
is empty.

Thanks guys.


(David Pilato) #2

Installing a plugin is just download it from a repo, unzip it in the
plugins folder.
But it seems that your analysis-bb plugin is seen by ES as a site plugin.
Not sure if it's you really want.

What you can do is to create a plugins folder under ES dir.
Create a dir named : elasticsearch-analysis-bb
Move all your jars (the plugin jar and its dependencies) in
plugins/elasticsearch-analysis-bb dir

Then, start ES and see in logs if the plugin is also started.

HTH
David.

Le 15 mars 2012 à 13:26, Thinus Prinsloo thinus.prinsloo@gmail.com a
écrit :

am struggling to install a plugin from the local directory. I have tried
./bin/plugin -install where the path is to the jar file, but
that doesn't want to work. I've also tried just copying the src directory
to the plugin directory, but that doesn't want to work either. I realise
that this is something trivial, but I just don't know how to install it.
If you install it from the zip file, what should be in the zip file? I
tried using the .zip generated by maven under the release folder, but that
doesn't want to work. The closest I got was by by specifying a file: url
(./plugin -url file:/location) and then -install the plugin, but that
doesn't want to work. Here is the output:

./plugin -url file:../plugins/ -install elasticsearch-analysis-bb-1.3.0
-> Installing elasticsearch-analysis-bb-1.3.0...
Trying file:../plugins/...
Downloading .DONE
failed to extract plugin
[/path/plugins/elasticsearch-analysis-bb-1.3.0.zip]
Identified as a _site plugin, moving to _site structure ...
Installed elasticsearch-analysis-bb-1.3.0

The path to the zip file is correct, but that does not want to work. It
destroys the zip file and creates a folder with the name of the file that
is empty.

Thanks guys.

--
David Pilato
http://dev.david.pilato.fr/
Twitter : @dadoonet


(thinusp) #3

David,

You are my hero... it really was as simple as that. I didn't realise that
ES will pick up the plugins on launch by itself; I thought you have to tell
it somehow to use it. Thank you kindly.

T.

On Thursday, 15 March 2012 14:36:58 UTC+2, David Pilato wrote:

Installing a plugin is just download it from a repo, unzip it in the
plugins folder.

But it seems that your analysis-bb plugin is seen by ES as a site
plugin. Not sure if it's you really want.

What you can do is to create a plugins folder under ES dir.

Create a dir named : elasticsearch-analysis-bb

Move all your jars (the plugin jar and its dependencies) in
plugins/elasticsearch-analysis-bb dir

Then, start ES and see in logs if the plugin is also started.

HTH

David.

This really shouldn't be hard, but I am struggling to install a plugin
from the local directory. I have tried ./bin/plugin -install
where the path is to the jar file, but that doesn't want to work. I've
also tried just copying the src directory to the plugin directory, but that
doesn't want to work either. I realise that this is something trivial, but
I just don't know how to install it. If you install it from the zip file,
what should be in the zip file? I tried using the .zip generated by maven
under the release folder, but that doesn't want to work. The closest I got
was by by specifying a file: url (./plugin -url file:/location) and then
-install the plugin, but that doesn't want to work. Here is the output:

./plugin -url file:../plugins/ -install elasticsearch-analysis-bb-1.3.0
-> Installing elasticsearch-analysis-bb-1.3.0...
Trying file:../plugins/...
Downloading .DONE
failed to extract plugin
[/path/plugins/elasticsearch-analysis-bb-1.3.0.zip]
Identified as a _site plugin, moving to _site structure ...
Installed elasticsearch-analysis-bb-1.3.0

The path to the zip file is correct, but that does not want to work. It
destroys the zip file and creates a folder with the name of the file that
is empty.

Thanks guys.

--
David Pilato
http://dev.david.pilato.fr/
Twitter : @dadoonet


(system) #4