Unable to load JNA native support library Elasticsearch 6.x

后端 未结 7 1426
不知归路
不知归路 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条回答
  •  无人及你
    2020-12-16 03:08

    Check the permissions on your /tmp/ directory. It must have had noexec.

    /tmp needs exec to support JNA. A workaround is to specify a tmp directory in elasticsearch sysconfig file.

    Something like export JAVA_OPTS="-Djava.io.tmpdir=$ES_HOME/tmp"

    Make sure there is a $ES_HOME/tmp directory and elasticsearch user has write permissions to it.

    I had this issue as I was using a hardened OS and also because the default umask is 0027.

提交回复
热议问题