I have a RHEL 7 VM with Enterprise Search 8.9.2 (Tarball) and Java 1.8. In the documentation Unterstützungsmatrix | Elastic I can read that my Enterprise Search 8.9.2 should support OpenJDK Java 1.8. But When I start with ./bin/enterprise-search I' got the error message that Java 11 is required. So, the documentation may be wrong.
How ever, I can't start my Enterprise Search. Is there a way to run different Java versions on a VM and configure the Java version which is used by Enterprise Search? Due to another on my VM, software which can only use Java 1.8, I have to my plan is to setup Java 11 parallel to 1.8 and let Enterprise Search know, to use Java 11.
Is there a way to run different Java versions on a VM and configure the Java version which is used by Enterprise Search?
@sebastianboelling you can install multiple java versions on your VM and use environment variables (like JAVA_HOME) to signal which one an environment should use. For development, our team has also leveraged a tool called jEnv which can help you manage multiple java installs.
I can read that my Enterprise Search 8.9.2 should support OpenJDK Java 1.8
You can set environment variables in enterprise-search*/config/env.sh, or you could set them in whatever script/tool you're using to run bin/enterprise-search (might be a Docker entrypoint, a bash script, a service script, etc)
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.