Elasticsearch using bundled JDK instead of the one at JAVA_HOME

Seeing this error while trying to run elasticsearch on redhat docker container. Any idea why elasticserach is not using the JDK present in JAVA_HOME or how to fix this error?

root@5196a84b088b:/var/lib/avi/logs# JAVA_HOME=/usr/lib/jvm/OpenJDK-1.8.0 /usr/share/elasticsearch/bin/elasticsearch -Epath.conf=/etc/elasticsearch/
warning: ignoring JAVA_HOME=/usr/lib/jvm/OpenJDK-1.8.0; using bundled JDK
Error occurred during initialization of boot layer
java.lang.module.ResolutionException: Modules log4j.core and org.apache.logging.log4j.core export package org.apache.logging.log4j.core.impl to module log4j2.ecs.layout

ERROR: Elasticsearch exited unexpectedly

The docker container doesn't include any other JDKs, and we strongly recommend using the bundled JDK.

1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.