ElasticSearch: Service start error

I'm facing some issue while start elasticsearch service using Linux command line sudo systemctl status elasticsearch.service.

Service status saying: elasticsearch[31315]: java.security.policy: error adding Entry: elasticsearch[31315]: java.net.MalformedURLException: unknown protocol: jrt systemd[1]: elasticsearch.service: Main process exited, code=exited, status=1/FAILURE

In log, showing something like java.io.FileNotFoundException: /usr/share/elasticsearch/lib/tools.jar (No such file or directory)

To apply the symbolic link, I used: sudo ln -s /usr/lib/jvm/java-1.8.0/lib/tools.jar /usr/share/elasticsearch/lib/
And JAVA_HOME=/usr/lib/jvm/java-8-oracle

Please Help! Thanks!

1 Like

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