Elasticsearch is stoping immediately after start

Hi all,
When I am starting the elasticsearch it is stopping immediately. First time status showing active but immediately stops.

the error is as-
elasticsearch.service - Elasticsearch
Loaded: loaded (/usr/lib/systemd/system/elasticsearch.service; disabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Wed 2019-06-12 14:42:06 IST; 622ms ago
Docs: http://www.elastic.co
Process: 7514 ExecStart=/usr/share/elasticsearch/bin/elasticsearch -p ${PID_DIR}/elasticsearch.pid --quiet (code=exited, status=1/FAILURE)
Main PID: 7514 (code=exited, status=1/FAILURE)

Jun 12 14:42:00 arun systemd[1]: Started Elasticsearch.
Jun 12 14:42:00 arun elasticsearch[7514]: warning: Falling back to java on path. This behavior is deprecated. Specify JAVA_HOME
Jun 12 14:42:06 arun systemd[1]: elasticsearch.service: Main process exited, code=exited, status=1/FAILURE
Jun 12 14:42:06 arun systemd[1]: elasticsearch.service: Failed with result 'exit-code'.

Check whether your JAVA jdk is in sync with your ES version. You can try upgrading to the latest ES 7.x where there is an option to go for bundled jdk plus ES.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.