How do I find where ElasticSearch is installing my plugins?

directory, elasticsearch

Solution

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

Problem

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.

Original source

Related problems