using ElasticSearch with Rails. (0.19.1)
After restart of my Mac all of a sudden it won't start anymore. Not sure what changed (did update Java recently) I installed via homebrew, and after re-install same issue.
when I try and start it with:
elasticsearch -f -D es.config=/usr/local/Cellar/elasticsearch/0.19.1/config/elasticsearch.yml
I get this:
[2012-09-13 10:33:38,865][INFO ][node ] [Ulysses] {0.19.1}[3944]: initializing ...
[2012-09-13 10:33:38,873][INFO ][plugins ] [Ulysses] loaded [], sites []
[2012-09-13 10:33:40,381][ERROR][bootstrap ] {0.19.1}: Initialization Failed ...
1) NoClassDefFoundError[Could not initialize class org.elasticsearch.common.xcontent.XContentFactory]2) StackOverflowError[null]
Can't find much on this error and really stuck now... Any tips much appreciated! Thanks
Can you try and use a newer version of elasticsearch, it should fixed there (homebrew should have 0.19.9). Alternatively, the fix is simple and requires changing in the elasticsearch.in.sh file this line: JAVA_OPTS="$JAVA_OPTS -Xss128k" to this: JAVA_OPTS="$JAVA_OPTS -Xss256k".
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With