Package Details: elasticsearch 8.17.0-1

Git Clone URL: https://aur.archlinux.org/elasticsearch.git (read-only, click to copy)
Package Base: elasticsearch
Description: Free and Open, Distributed, RESTful Search Engine
Upstream URL: https://www.elastic.co/elasticsearch/
Licenses: custom:Elastic-2.0
Conflicts: elasticsearch-bin, elasticsearch7
Provides: elasticsearch
Submitter: hashworks
Maintainer: ipaqmaster
Last Packager: ipaqmaster
Votes: 11
Popularity: 0.057494
First Submitted: 2022-01-08 16:30 (UTC)
Last Updated: 2024-12-12 16:50 (UTC)

Dependencies (2)

Required by (18)

Sources (9)

Latest Comments

« First ‹ Previous 1 .. 7 8 9 10 11 12 13 14 Next › Last »

brauliobo commented on 2022-11-07 12:18 (UTC) (edited on 2022-11-07 12:30 (UTC) by brauliobo)

I've managed to build with java 18

it seems it needs to FORCE a specific java version, as other versions don't work

brauliobo commented on 2022-11-07 12:18 (UTC)

build error with java 19:

Starting a Gradle Daemon, 1 incompatible Daemon could not be reused, use --status for details

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':build-conventions'.
> Could not open cp_proj generic class cache for build file '/home/braulio/.cache/yay/elasticsearch/src/elasticsearch-8.5.0/build-conventions/build.gradle' (/home/braulio/.gradle/caches/7.5.1/scripts/b8a5zcywzm4mdtf3tc1em9uws).
   > BUG! exception in phase 'semantic analysis' in source unit '_BuildScript_' Unsupported class file major version 63

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

* Get more help at https://help.gradle.org

with java 11:

FAILURE: Build failed with an exception.                                                                                                                                                         

* Where:                                                                                                                                                                                         
Build file '/home/braulio/.cache/yay/elasticsearch/src/elasticsearch-8.5.0/build-tools-internal/build.gradle' line: 186                                                                          

* What went wrong:                                                                                                                                                                               
A problem occurred evaluating project ':build-tools-internal'.                                                                                                                                   
> Java 17 is required to build Elasticsearch but current Java is version 11.                                                                                                                     

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

* Get more help at https://help.gradle.org                                                                                                                                                       

BUILD FAILED in 1s                                                                                                                                                                               
4 actionable tasks: 4 executed

HLFH commented on 2022-11-07 08:28 (UTC)

New package released.

HLFH commented on 2022-11-07 08:11 (UTC)

I have added JDK18 OpenJDK: https://aur.archlinux.org/packages/jdk18-openjdk. I will now update Elasticsearch package.

HLFH commented on 2022-11-06 09:27 (UTC)

The problem there, even with the update-gradle-wrapper-76 branch, is you will get issues with lucene-core 9.4.1 when building: "error: class file for [...] uses preview features of Java SE 19". I'd recommend Java 18 with Elasticsearch at this stage. See: https://github.com/apache/lucene/pull/11886 and https://github.com/apache/lucene/pull/11889.

HLFH commented on 2022-11-06 00:34 (UTC)

You need gradle 7.6 RC1 to support Java 19 (version 63). https://github.com/gradle/gradle/issues/20372 In elasticsearch, they embed gradle as "gradlew" but the version is 7.5.1. That is why we get the bug. Elasticsearch plans to embed gradle 7.6 for the 8.6.0 release of Elasticsearch: https://github.com/elastic/elasticsearch/pull/89796. The best I could do to support Java 19 is I prepare a special release of Elasticsearch 8.5.0 but that pinpoints to the update-gradle-wrapper-76 branch.

esh commented on 2022-11-03 11:19 (UTC)

8.5.0-1 failed to build for me using the latest OpenJDK 19:

FAILURE: Build failed with an exception.

* What went wrong:
Could not open cp_settings generic class cache for settings file '/home/esh/packages/elasticsearch/src/elasticsearch-8.5.0/settings.gradle' (/home/esh/.gradle/caches/7.5.1/scripts/7qmvoju8mixp2m0jts3x9vuw8).
> BUG! exception in phase 'semantic analysis' in source unit '_BuildScript_' Unsupported class file major version 63

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

* Get more help at https://help.gradle.org

BUILD FAILED in 337ms

After switching to Java 17 using archlinux-java set java-17-openjdk, the build succeeded without issues. I switched back to java-19-openjdk after installing it, and it runs just fine with that version. I don't know if there's a good way to handle this situation automatically. I suppose it can be built with many different JDK versions other than 17 (just not 19), so adding jdk17-openjdk as an explicit build dependency is probably a bit aggressive. 🙂

HLFH commented on 2022-11-02 18:02 (UTC)

Any other requests?

HLFH commented on 2022-11-02 17:54 (UTC) (edited on 2022-11-02 17:56 (UTC) by HLFH)

I guess I now need to add NotifyAccess=all to elasticsearch.service. Not sure I need it though. Any other confirmations?

HLFH commented on 2022-11-02 17:53 (UTC)

8.5.0 release. Maintainer name changed.