elasticsearch-prometheus-exporter icon indicating copy to clipboard operation
elasticsearch-prometheus-exporter copied to clipboard

prometheus-exporter requires Java 16 Error

Open alexblue46 opened this issue 3 years ago • 5 comments

When installing elasticsearch-prometheus-exporter version 7.16.3.0, I get this error: java.lang.IllegalStateException: prometheus-exporter requires Java 16:, your system: 8. Is it possible that this prometheus exporter may be made available for use with either Java 8 or 11?

alexblue46 avatar Feb 02 '22 19:02 alexblue46

+1 just realized I'm using version 8 of java

ilunie avatar Feb 04 '22 06:02 ilunie

I fix the issue by changing the java_home before running the installation

ilunie avatar Feb 18 '22 13:02 ilunie

@ILunie Were you able to install it with Java 8 or 11?

alexblue46 avatar Feb 22 '22 20:02 alexblue46

@alexblue46 we've used the Java 16 embedded in ES7 install. That's what @ILunie means by changing JAVA_HOME value, to point at the JVM shipped with ES7.

adambro avatar Feb 24 '22 10:02 adambro

ES 8.x.x requires JVM 17 - https://github.com/elastic/elasticsearch/pull/79873 . The CI builds it with 16 - to build with something else one needs to build it locally.

mindw avatar Mar 30 '22 18:03 mindw