Can't start elasticsearch server via Homebrew

user592638 picture user592638 · Feb 5, 2013 · Viewed 13.9k times · Source

So I have installed elasticsearch through brew:

$ brew install elasticsearch

Then when I run the elasticsearch server:

elasticsearch -f -D es.config=/usr/local/Cellar/elasticsearch/0.19.3/config/elasticsearch.yml

I get this error:

{0.20.4}: Setup Failed ...
- FailedToResolveConfigException[Failed to resolve config path [/usr/local/Cellar/elasticsearch/0.19.3/config/elasticsearch.yml], tried file path [/usr/local/Cellar/elasticsearch/0.19.3/config/elasticsearch.yml], path file [/usr/local/Cellar/elasticsearch/0.20.4/config/usr/local/Cellar/elasticsearch/0.19.3/config/elasticsearch.yml], and classpath]

How can I fix this? Any ideas och suggestions are welcome.

I did this and it had worked for me:

Get the package:

$ curl -k -L -o elasticsearch-0.20.2.tar.gz http://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.20.2.tar.gz

Unzipp:

$ tar -zxvf elasticsearch-0.20.2.tar.gz

Run the elasticsearch server:

./elasticsearch-0.20.2/bin/elasticsearch -f

Answer

dadoonet picture dadoonet · Feb 5, 2013

try with

elasticsearch -f -Des.path.conf=/usr/local/Cellar/elasticsearch/0.19.3/config/