Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I find where ElasticSearch is installing my plugins?

I have installed elasticsearch with brew install elasticsearch. My plugins seem to reside in /usr/local/Cellar/elasticsearch/0.19.8/plugins. With cat $( which plugin ) I see a ES_HOME variable that contains the correct path.

Is there a way to ask elastic for ES_HOME or the plugins directory?


EDIT

What I am looking for is the directory used by the plugin executable to install the plugins when I do plugin -install something. I want to use that path in a script to fire up elastic search.

like image 908
Kostas Avatar asked Aug 14 '12 14:08

Kostas


People also ask

Where are the Elasticsearch plugins installed?

Use the elasticsearch-plugin command line tool to install, list, and remove plugins. It is located in the $ES_HOME/bin directory by default but it may be in a different location depending on which Elasticsearch package you installed: Directory layout of . tar.

How do I know if Elasticsearch plugins are installed?

You can also check which plugins are installed by looking into plugins directory in elastic installation directory.

Where is Elasticsearch path in Linux?

Once you locate your ElasticSearch home folder, in my case /usr/share/elasticsearch , cd down to that location. Once there, you could simply run bin/plugin -install elasticsearch/elasticsearch-analysis-phonetic/1.3. 0 and it will automatically do the rest for you. Hope this helps.


2 Answers

To find your elasticsearch home directory & install plugin(s) follow these steps below.

Locate your home directory ( Look for Settings -> Path -> Home for value )

$ curl "localhost:9200/_nodes/settings?pretty=true" 

Goto Location (Example settings.path.home value: /usr/local/Cellar/elasticsearch/1.5.0)

$ cd /usr/local/Cellar/elasticsearch/1.5.0 

Install Plugin (Example plugin: mobz/elasticsearch-head)

$ bin/plugin -install mobz/elasticsearch-head 
like image 118
Tyler Rafferty Avatar answered Oct 07 '22 02:10

Tyler Rafferty


I used this command:

$ curl "localhost:9200/_nodes?pretty=true&settings=true" 

Check next setting: nodes - settings - path - plugins and use it as your plugins directory.

like image 39
juaniiton1 Avatar answered Oct 07 '22 00:10

juaniiton1