Issue
I am trying to load mysql data to elasticsearch using logstash. I tried almost every version of mysql-connector-java.jar but everything fails. can someone help me regarding this? which version of mysql-java-connector is used with java 11.
Solution
- Elasticsearch 7 works fine with JDK 8 — see the supported JVM matrix. This will be the easiest way.
You might be able to split into multiple JDK versions on a host with some trickery, but you're off the beaten track. Either you could
- change the configuration files to point to the right Java version (though that might be tricky with updates)
- Set different
JAVA_HOME
for the different users running the services.
Also note that in Elasticsearch 7 the JDK is automatically bundled with the binary and if there is no JAVA_HOME
set it will fall back to that one.
Answered By - xeraa
Answer Checked By - Dawn Plyler (JavaFixing Volunteer)