The permissions of the default directories of this package is wrong. elasticsearch runs as user elasticsearch, the owner of the following folders must be the same -- /var/log/elasticsearch (logdir) /var/lib/elasticsearch (datadir) Otherwise ES quits with -- Caused by: java.nio.file.AccessDeniedException: /var/lib/elasticsearch/nodes
Can you please test with version 5.1.1 that is in the tree? The init script sets the permissions (https://github.com/gentoo/gentoo/blob/master/app-misc/elasticsearch/files/elasticsearch.init7): checkpath -d -o "${ES_USER}:${ES_GROUP}" -m750 "/var/lib/elasticsearch" checkpath -d -o "${ES_USER}:${ES_GROUP}" -m750 "/var/log/elasticsearch"
Yes, verified. Thanks!