nytlabs / hive

A platform for backing crowdsourcing websites, built in golang for elasticsearch
Apache License 2.0
362 stars 38 forks source link

Add explicit instructions to run elastic search to readme. #6

Open jackiekazil opened 9 years ago

jackiekazil commented 9 years ago

I would have submitted this as a pull request, but I am not sure if you had a preferred way of doing this or an opinion on where this should go in the Readme.


When importing data, I got a connection error and realized it was because I didn't have Elastic search running. Maybe add something to the Setup section?

Details if you decide to add something specific to the readme.....

If you get this error while importing data:

{"error":"Put http://localhost:9200/hive/assignments/_mapping: dial tcp 127.0.0.1:9200: connection refused"}

Make sure that elastic search is running. From the Homebrew Elastic Search install:

To have launchd start elasticsearch at login:
    ln -sfv /usr/local/opt/elasticsearch/*.plist ~/Library/LaunchAgents
Then to load elasticsearch now:
    launchctl load ~/Library/LaunchAgents/homebrew.mxcl.elasticsearch.plist
Or, if you don't want/need launchctl, you can just run:
    elasticsearch --config=/usr/local/opt/elasticsearch/config/elasticsearch.yml