From nobody Wed Aug 18 10:06:02 2021 X-Original-To: elastic@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id EA45917617EE for ; Wed, 18 Aug 2021 10:06:17 +0000 (UTC) (envelope-from SRS0=iHF2=NJ=FreeBSD.org=otis@ns2.wilbury.net) Received: from ns2.wilbury.net (ns2.wilbury.net [92.60.51.55]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "svc.wilbury.net", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4GqNpK58sYz3p4d for ; Wed, 18 Aug 2021 10:06:17 +0000 (UTC) (envelope-from SRS0=iHF2=NJ=FreeBSD.org=otis@ns2.wilbury.net) Received: from smtpclient.apple (chello085216186108.chello.sk [85.216.186.108]) (Authenticated sender: juraj@lutter.sk) by svc.wilbury.net (Postfix) with ESMTPSA id 2F34545CF50; Wed, 18 Aug 2021 12:06:04 +0200 (CEST) From: Juraj Lutter Message-Id: <63737714-B94E-4317-8073-64EA34D69280@FreeBSD.org> Content-Type: multipart/signed; boundary="Apple-Mail=_5D788B1F-23C1-42D5-AABB-7348CF67A636"; protocol="application/pgp-signature"; micalg=pgp-sha256 List-Id: Support of ElasticSearch-related ports List-Archive: https://lists.freebsd.org/archives/freebsd-elastic List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-elastic@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.13\)) Subject: Re: ES 7.14.0 not compatible with Prometheus Exporter due to Java Version Date: Wed, 18 Aug 2021 12:06:02 +0200 In-Reply-To: <04EA2729-F165-4A95-9D90-9A0E22BE8782@netzkommune.de> Cc: "elastic@freebsd.org" To: Filias Heidt References: <04EA2729-F165-4A95-9D90-9A0E22BE8782@netzkommune.de> X-Mailer: Apple Mail (2.3654.120.0.1.13) X-Spam-Status: No, score=2.5 required=5.0 tests=BAYES_00,HTML_MESSAGE, KHOP_HELO_FCRDNS,RCVD_IN_PBL,RCVD_IN_SORBS_DUL,SPF_HELO_NONE, SPF_SOFTFAIL autolearn=no autolearn_force=no version=3.4.5 X-Spam-Level: ** X-Spam-Checker-Version: SpamAssassin 3.4.5 (2021-03-20) on ns2.wilbury.net X-Rspamd-Queue-Id: 4GqNpK58sYz3p4d X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-ThisMailContainsUnwantedMimeParts: Y --Apple-Mail=_5D788B1F-23C1-42D5-AABB-7348CF67A636 Content-Type: multipart/alternative; boundary="Apple-Mail=_47472A72-12B1-4706-BFA1-43461CEB614D" --Apple-Mail=_47472A72-12B1-4706-BFA1-43461CEB614D Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Hi, > On 18 Aug 2021, at 12:02, Filias Heidt wrote: >=20 > Hi, >=20 > 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 = = > 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(PluginsServic= e.java:344) > at = org.elasticsearch.plugins.InstallPluginCommand.loadPluginInfo(InstallPlugi= nCommand.java:791) > at = org.elasticsearch.plugins.InstallPluginCommand.installPlugin(InstallPlugin= Command.java:846) > at = org.elasticsearch.plugins.InstallPluginCommand.execute(InstallPluginComman= d.java:246) > at = org.elasticsearch.plugins.InstallPluginCommand.execute(InstallPluginComman= d.java:216) > at = org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareComm= and.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) >=20 > 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. You can instruct elasticsearch to use Java 11 at run time (using = elasticsearch_java_home rc.conf variable). >=20 > 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?) I will have to consider this anyway. Thanks for noticing this. otis =E2=80=94 Juraj Lutter otis@FreeBSD.org --Apple-Mail=_47472A72-12B1-4706-BFA1-43461CEB614D-- --Apple-Mail=_5D788B1F-23C1-42D5-AABB-7348CF67A636 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- iHUEAREIAB0WIQR9WLqI3W4V0bRHtaAtyIKFszIZVAUCYRzbigAKCRAtyIKFszIZ VK+SAP4tkabND57ZJsjDnRI8hK33KEBaiSlxSqTxfCcsFH86EAD/ed7g8ELLn/aC BzcyybW0lO58WYTi5Yanail6VnifSBo= =9sjl -----END PGP SIGNATURE----- --Apple-Mail=_5D788B1F-23C1-42D5-AABB-7348CF67A636--