I have set JAVA_HOME to /usr. When i restart elasticsearch using systemctl i get following:
Job for elasticsearch.service failed because the control process exited with error code. See "systemctl status elasticsearch.service" and "journalctl -xe" for details.
If i set same value of JAVA_HOME in /etc/sysconfig/elasticsearch, it works.
Environment:
- ES version 7.4.1
- CentOS kernel 3.10.0-1062.1.2.el7.x86_64
- Version : CentOS Linux release 7.7.1908 (Core)
I have set
JAVA_HOMEto/usr. When i restart elasticsearch usingsystemctli get following:If i set same value of JAVA_HOME in
/etc/sysconfig/elasticsearch, it works.Environment: