ES 7.14.0 not compatible with Prometheus Exporter due to Java Version
Date: Wed, 18 Aug 2021 10:02:11 UTC
Hi, Elasticsearch 7 was bumped to 7.14.0 a few days ago (thanks btw!) and I tried installing https://github.com/vvanholl/elasticsearch-prometheus-exporter <https://github.com/vvanholl/elasticsearch-prometheus-exporter> <https://github.com/vvanholl/elasticsearch-prometheus-exporter <https://github.com/vvanholl/elasticsearch-prometheus-exporter>> in the correct version after updating. I get the following Error: Exception in thread "main" java.lang.IllegalStateException: prometheus-exporter requires Java 16:, your system: 8 at org.elasticsearch.jdk.JarHell.checkJavaVersion(JarHell.java:245) at org.elasticsearch.plugins.PluginsService.verifyCompatibility(PluginsService.java:344) at org.elasticsearch.plugins.InstallPluginCommand.loadPluginInfo(InstallPluginCommand.java:791) at org.elasticsearch.plugins.InstallPluginCommand.installPlugin(InstallPluginCommand.java:846) at org.elasticsearch.plugins.InstallPluginCommand.execute(InstallPluginCommand.java:246) at org.elasticsearch.plugins.InstallPluginCommand.execute(InstallPluginCommand.java:216) at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:75) at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:116) at org.elasticsearch.cli.MultiCommand.execute(MultiCommand.java:80) at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:116) at org.elasticsearch.cli.Command.main(Command.java:79) at org.elasticsearch.plugins.PluginCli.main(PluginCli.java:36) And I noticed a warning, too: Future versions of Elasticsearch will require Java 11; your Java version from [/usr/local/openjdk8/jre] does not meet this requirement. Consider switching to a distribution of Elasticsearch with a bundled JDK. If you are already using a distribution with a bundled JDK, ensure the JAVA_HOME environment variable is not set. Is it possible to bump the Java-Version on which ES is dependent to something which is supported by both the Prometheus Exporter and ES 7 (and possible future version?) Unfortunately I don’t have the skills to provide you with a patch, but I thought I’d let you know this is happening and I would greatly appreciate if someone could take a look at that :) Cheers and thanks for your help! Filias