You are not logged in.

#1 2023-08-20 19:09:07

foleda
Member
Registered: 2014-11-16
Posts: 4

Elasticsearch build problem [SOLVED]

I am trying to install elasticsearch from the AUR.  During the build I get the error: release version 17 not supported, specifically

> Configure project :x-pack:plugin:searchable-snapshots:qa:hdfs
hdfsFixture unsupported, please set HADOOP_HOME and put HADOOP_HOME\bin in PATH
=======================================
Elasticsearch Build Hamster says Hello!
  Gradle Version        : 8.1.1
  OS Info               : Linux 6.4.11-arch2-1 (amd64)
  JDK Version           : 20.0.2+9 (N/A)
  JAVA_HOME             : /usr/lib/jvm/java-20-openjdk
  Random Testing Seed   : 876E8B3AAD9E07A6
  In FIPS 140 mode      : false
=======================================

> Task :libs:elasticsearch-secure-sm:compileJava FAILED
> Task :libs:elasticsearch-plugin-classloader:compileJava FAILED
> Task :libs:elasticsearch-plugin-api:compileJava FAILED
> Task :libs:elasticsearch-logging:compileJava FAILED
> Task :libs:elasticsearch-grok:compileJava FAILED
> Task :libs:elasticsearch-tdigest:compileJava FAILED
> Task :libs:elasticsearch-geo:compileJava FAILED
> Task :libs:elasticsearch-core:compileJava FAILED

FAILURE: Build completed with 8 failures.

1: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':libs:elasticsearch-secure-sm:compileJava'.
> error: release version 17 not supported

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
==============================================================================

Running archlinux-java status shows:

Available Java environments:
  java-20-openjdk (default)
  java-8-openjdk/jre

I don't know where the reference to version 17 is coming from.  Where should I look?

Last edited by foleda (2023-08-21 15:11:10)

Offline

#2 2023-08-21 10:05:16

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 14,837

Re: Elasticsearch build problem [SOLVED]

Builds fine here, please post full output including the exact command you used to start the build .

Builds fine on my live system, but fails in a clean chroot build.

Smells like  a missing makedepend, try with jre-openjdk installed.
If that also fails try with jdk-openjdk installed .

Last edited by Lone_Wolf (2023-08-21 10:09:34)


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#3 2023-08-21 13:52:45

loqs
Member
Registered: 2014-03-06
Posts: 18,815

Re: Elasticsearch build problem [SOLVED]

Lone_Wolf wrote:

Smells like  a missing makedepend, try with jre-openjdk installed.
If that also fails try with jdk-openjdk installed .

That fixes the clean chroot build for me.

diff --git a/PKGBUILD b/PKGBUILD
index 2f9443f..c855101 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -8,6 +8,7 @@ arch=('aarch64' 'x86_64')
 url="https://www.elastic.co/elasticsearch/"
 license=('custom:Elastic-2.0')
 depends=('jre-openjdk-headless' 'libxml2')
+makedepends=('jdk-openjdk')
 provides=("elasticsearch=$pkgver")
 conflicts=('elasticsearch7' 'elasticsearch-bin')
 source=(

Edit:
jre-openjdk was not enough.

Last edited by loqs (2023-08-21 13:57:46)

Offline

#4 2023-08-21 15:10:32

foleda
Member
Registered: 2014-11-16
Posts: 4

Re: Elasticsearch build problem [SOLVED]

loqs wrote:
Lone_Wolf wrote:

Smells like  a missing makedepend, try with jre-openjdk installed.
If that also fails try with jdk-openjdk installed .

That fixes the clean chroot build for me.

diff --git a/PKGBUILD b/PKGBUILD
index 2f9443f..c855101 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -8,6 +8,7 @@ arch=('aarch64' 'x86_64')
 url="https://www.elastic.co/elasticsearch/"
 license=('custom:Elastic-2.0')
 depends=('jre-openjdk-headless' 'libxml2')
+makedepends=('jdk-openjdk')
 provides=("elasticsearch=$pkgver")
 conflicts=('elasticsearch7' 'elasticsearch-bin')
 source=(

Edit:
jre-openjdk was not enough.

That was the problem.  I had jre-openjdk installed but not jdk-openjdk.  Gotta love those informative error messages.

Offline

Board footer

Powered by FluxBB