Unable to load JNA native support library Elasticsearch 6.x

后端 未结 7 1399
不知归路
不知归路 2020-12-16 02:22

I have installed Elasticsearch 6.x in my Debian 7 (wheezy). I tried to start with service elasticsearch start but its give me an error message

7条回答
  •  -上瘾入骨i
    2020-12-16 03:16

    I had the same issue on a CentOS7 cPanel server with ElasticSearch 7.8 installed via YUM. As per the answer, I did the following:

    1. Set ES_JAVA_OPTS="-Djna.tmpdir=/var/lib/elasticsearch/tmp" in /etc/sysconfig/elasticsearch
    2. mkdir -p /var/lib/elasticsearch/tmp
    3. chown -R elasticsearch.elasticsearch /var/lib/elasticsearch/tmp

提交回复
热议问题