# Install local plugin

**URL:** <https://discuss.elastic.co/t/install-local-plugin/7016>\
**Category:** Elasticsearch\
**Created:** [March 15, 2012, 12:26pm UTC](https://discuss.elastic.co/t/install-local-plugin/7016 "2012-03-15T12:26:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![thinusp](https://avatars.discourse-cdn.com/v4/letter/t/da6949/32.png) [@thinusp](https://discuss.elastic.co/u/thinusp)\
**Post date:** [March 15, 2012, 12:26pm UTC](https://discuss.elastic.co/t/install-local-plugin/7016/1 "2012-03-15T12:26:46Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [March 15, 2012, 12:36pm UTC](https://discuss.elastic.co/t/install-local-plugin/7016/2 "2012-03-15T12:36:58Z")

</div>

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](mailto: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/](http://dev.david.pilato.fr/)  
Twitter : @dadoonet

---

<div class="post-metadata">

**Author:** ![thinusp](https://avatars.discourse-cdn.com/v4/letter/t/da6949/32.png) [@thinusp](https://discuss.elastic.co/u/thinusp)\
**Post date:** [March 15, 2012, 12:43pm UTC](https://discuss.elastic.co/t/install-local-plugin/7016/3 "2012-03-15T12:43:01Z")

</div>

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/](http://dev.david.pilato.fr/)  
> Twitter : @dadoonet

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 3:36am UTC](https://discuss.elastic.co/t/install-local-plugin/7016/4 "2017-07-06T03:36:00Z")

</div>


