Building elasticsearch on windows 10

Hey All!
I am trying to build elastic search on my local windows 10 box using jdk 15.
As per ReadMe, i have executed gradlew localDistro. But i am getting following error.

  D:\OpenSource\elasticsearch>gradlew localDistro

> Configure project :modules:reindex
Disabling reindex-from-old tests because we can't get the pid file on windows

> Configure project :plugins:repository-hdfs
hdfsFixture unsupported, please set HADOOP_HOME and put HADOOP_HOME\bin in PATH

> 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        : 7.0.2
  OS Info               : Windows 10 10.0 (amd64)
  JDK Version           : 15.0.3 (Zulu)
  JAVA_HOME             : C:\Program Files\Zulu\zulu-15
  Random Testing Seed   : 706B0F58213BD24E
  In FIPS 140 mode      : false
=======================================

> Task :distribution:archives:buildWindows FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':distribution:archives:buildWindows'.
> Could not resolve all files for configuration ':distribution:archives:jdk_bundled_windows_x64'.
   > Failed to transform windows-16.0.1-x64.zip (adoptopenjdk_16:windows:16.0.1) to match attributes {artifactType=directory, jdk=true, org.gradle.status=integration}.
      > Could not download windows-16.0.1-x64.zip (adoptopenjdk_16:windows:16.0.1)
         > Could not get resource 'https://api.adoptopenjdk.net/v3/binary/version/jdk-16.0.1+9/windows/x64/jdk/hotspot/normal/adoptopenjdk'.
            > Could not GET 'https://github.com/AdoptOpenJDK/openjdk16-binaries/releases/download/jdk-16.0.1+9/OpenJDK16U-jdk_x64_windows_hotspot_16.0.1_9.zip'.
               > PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

* 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 49s
430 actionable tasks: 5 executed, 425 up-to-date

I have tried adding github.com certificate as well in my jdk but still same error. Any idea?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.