Summary: | app-misc/elasticsearch-7.10.2 elasticsearch-systemd-pre-exec[4614]: could not find java in bundled jdk at /usr/share/elasticsearch/jdk/bin/java | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Alessandro Barbieri <lssndrbarbieri> |
Component: | Current packages | Assignee: | Tomáš Mózes <hydrapolic> |
Status: | UNCONFIRMED --- | ||
Severity: | normal | CC: | proxy-maint, steffen.weber |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Alessandro Barbieri
2021-03-25 01:28:06 UTC
Workaround on systemd: Install OpenJDK 11 then in /etc/systemd/system/elasticsearch.service.d/java.conf , put the correct JAVA_HOME (ES_JAVA_HOME is preferred by Elasticsearch): [Service] Environment="ES_JAVA_HOME=/opt/openjdk-bin-11" In /etc/elasticsearch/jvm.options , comment out the Xlog line around line ~92. Otherwise ES will not start. Then run `systemctl daemon-reload` and start the service. |