Unable to start elasticsearch from systemctl in centos 7.7

Hi All,

I have done a fresh installation of elasticsearch 7.6.2, installation went through successfully. Only problem is i'm not able to start the elasticsearch service through systemctl

But i'm able to start the service by going to /us/share/elasticsearch/bin folder and executing elasticsearch file.

Getting some java related error

java.lang.NoClassDefFoundError: Could not initialize class com.sun.jna.Native

Any suggetsions please

Thanks
Gautham

Got the answer.

Edit the file /etc/sysconfig/elasticsearch

Changing the ES_JAVA_OPTS="-Djna.tmpdir=/var/lib/elasticsearch/tmp" worked.

Thanks
Gautham

2 Likes

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