Search code examples
macoselasticsearchdjango-haystack

elastic search will not start


I am running mac osx. I installed elasticsearch with "pip install elasticsearch". I cannot start the elasticsearch server. None of the start commands I tried work. For example, "bin/elasticsearch -f" resulted in "No such file or directory". Please help.


Solution

  • I solved the problem. Basically using "pip install elasticsearch" only allows you to use elasticsearch directly in python (my theory). So I installed elasticsearch a different way and it worked!

    Procedure: a) brew install elasticsearch b) elasticsearch -f -D es.config=/usr/local/opt/elasticsearch/config/elasticsearch.yml