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