Elasticsearch: Job for elasticsearch.service failed

后端 未结 4 970
再見小時候
再見小時候 2021-02-06 05:44

I am currently trying to setup Elasticsearch for a project. I have installed Elasticsearch 7.4.1 and I have also installed Java, t

4条回答
  •  失恋的感觉
    2021-02-06 06:08

    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
    

提交回复
热议问题