I've read three of the solutions provided here and here and here. Followed those three however it doesn't work. Whenever I tried running elasticsearch as a service:
/etc/init.d/elasticsearch start
it always gives me:
Waiting for ElasticSearch................................
WARNING: ElasticSearch may have failed to start.
Now when I try to find the error log (/var/log/elasticsearch), it's never there. ANy idea?
Make sure that you have the JDK and you have specified the
JAVA_HOME
and theES_HOME
vars.The following snippet works for me:
Whenever you want, you can type the following, in order to see what the program do:
tail -f ES_HOME/logs/elasticsearch.log
Finally, you can kill the program with the pid. There are a lot of ways. A simple is the following:
of more easy:
Configure the elastic search in ubuntu. Please check here for the proper guidance.