Cannot build v8.4.2

wget https://github.com/elastic/elasticsearch/archive/refs/tags/v8.4.2.tar.gz
tar -xvf v8.4.2.tar.gz
cd elasticsearch-8.4.2

...

[user001@host elasticsearch-8.4.2]$ ./gradlew localDistro

> Task :build-tools:compileJava
Note: /home/user001/elasticsearch-8.4.2/build-tools/src/main/java/org/elasticsearch/gradle/testclusters/TestClustersPlugin.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

> Task :build-tools-internal:compileJava
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /home/user001/elasticsearch-8.4.2/build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/snyk/SnykDependencyGraph.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

FAILURE: Build failed with an exception.

* What went wrong:
Could not determine the dependencies of task ':x-pack:plugin:ml:explodedBundlePlugin'.
> Could not resolve all task dependencies for configuration ':x-pack:plugin:ml:nativeBundle'.
   > Could not find org.elasticsearch.ml:ml-cpp:8.4.2-SNAPSHOT.
     Searched in the following locations:
       - https://artifacts-snapshot.elastic.co/ml-cpp/8.4.2-SNAPSHOT/downloads/ml-cpp/ml-cpp-8.4.2-SNAPSHOT-deps.zip
     Required by:
         project :x-pack:plugin:ml

* 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 43s
19 actionable tasks: 19 executed

cannot build source code from v8.4.2

It doesn't seem to resolve the dependency ml-cpp:8.4.2.

any suggestions?

Thanks.

Artifacts for version 8.4.2 have been removed as this is no longer a supported version - only artifacts from 8.12+ are available now.

Do you need to compile the 8.4.2 version for some reason, or can you use an updated version?

1 Like

Thank you for your response.

I have a legacy RHEL7 system that I'm in the process of rebuilding, which was using v8.4.2.
However, I've run into the constraint of not being able to use the package manager in this situation.

This is unfortunate because I would have preferred to be able to run RPM files, but that's not possible.

Fortunately, the dependencies to build the source code were ready, and I started building all of them.

Along the way, I encountered an error like the one in the body of the post, so I wrote this.

Thank you for the assurance that 8.12+ is available.
You saved my time.

I will try to migrate the system I am currently building to the latest version.

1 Like