I am currently trying to setup Elasticsearch for a project. I have installed Elasticsearch 7.4.1
and I have also installed Java, t
First verify that this is the same problem with command:
journalctl -xe
If you see error like this java.lang.NoClassDefFoundError: Could not initialize class then do this:
My solution I got from here https://github.com/elastic/elasticsearch/issues/57018
sudo nano /etc/sysconfig/elasticsearch
Add this at the end or beggining of the file
# Elasticsearch temp directory
ES_TMPDIR=/var/log/elasticsearch