Building OSS release version of Elastic Search 6.3.1

Hi,
I am new to Elastic Search, I am trying to build OSS release version of 6.3.1 from source code. I followed instructions mentioned in readme, downloaded the code from GIT and ran "gradlew assemble" command. Build is successful, but i see zip files created under "C:\ES\elasticsearch-6.3.1\distribution\archives\oss-zip\build\distributions" with name elasticsearch-oss-6.3.1-SNAPSHOT.zip.

I am guessing SNAPSHOT in name indicates its developer build not release? Please help me how i can build OSS release version of Elastic Search 6.3.1 from source code.

1 Like

Why are looking to build instead of downloading it?

Thanks Christian for responding...as per our internal policy we need to build it from source code rather than downloading.

Meanwhile I tried by running "gradlew build", getting following error, not sure whether i am doing it right way

< ERROR 0.00s J2 | RejectionActionIT (suite) <<< FAILURES!

Throwable #1: java.lang.Exception: Suite timeout exceeded (>= 1200000 msec).
at __randomizedtesting.SeedInfo.seed([4BFE8F5B4B5A3D73]:0)
Completed [294/300] on J2 in 1209.14s, 1 test, 2 errors <<< FAILURES!

Task :server:integTest
Tests with failures:

  • org.elasticsearch.indices.stats.IndexStatsIT.testThrottleStats
  • org.elasticsearch.action.RejectionActionIT.testSimulatedSearchRejectionLoad
  • org.elasticsearch.action.RejectionActionIT (suite)

Slow Tests Summary:
1209.14s | org.elasticsearch.action.RejectionActionIT
404.98s | org.elasticsearch.indices.stats.IndexStatsIT
309.24s | org.elasticsearch.snapshots.SharedClusterSnapshotRestoreIT
288.17s | org.elasticsearch.search.fetch.subphase.highlight.HighlighterSearchIT
206.36s | org.elasticsearch.search.query.SearchQueryIT

JUnit4 test failed, ant output was:
[junit4] says jolly good day! Master seed: 4BFE8F5B4B5A3D73
[junit4] JVM J1: stderr was not empty, see: C:\ES\elasticsearch-6.3.1\server\build\testrun\integTest\temp\junit4-J1-20180728_083511_13613879362498251282678.syserr
[junit4] JVM J0: 1.87 .. 3017.88 = 3016.01s
[junit4] JVM J1: 1.87 .. 2934.86 = 2932.99s
[junit4] JVM J2: 1.87 .. 3553.95 = 3552.07s
[junit4] Execution time total: 59 minutes 14 seconds
[junit4] Tests summary: 300 suites, 2216 tests, 1 suite-level error, 1 error, 1 failure, 80 ignored (23 assumptions)

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':server:integTest'.

There were test failures: 300 suites, 2216 tests, 1 suite-level error, 1 error, 1 failure, 80 ignored (23 assumptions) [seed: 4BFE8F5B4B5A3D73] />

In order to build a non-snapshot version, you need to pass -Dbuild.snapshot=false to the assemble command.

Thanks Ryan, that helped.

But i am facing following error while running non snapshot version, Also please let me know is there any documentation available about various other options apart from -Dbuild.snapshot=false, i want to just build OSS version.

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

FAILURE: Build failed with an exception.

  • Where:
    Build file 'C:\ES\elasticsearch-6.3.1\x-pack\plugin\core\build.gradle' line: 68

  • What went wrong:
    A problem occurred evaluating project ':x-pack:plugin:core'.
    Property license.key must be set for release build />

What if you run

gradle assemble -Dbuild.snapshot=false

Instead?

Hi David, Still getting same error with gradle assemble -Dbuild.snapshot=false

Error:
"What went wrong:
A problem occurred evaluating project ':x-pack:plugin:core'.
Property license.key must be set for release build"

I am using Gradle 4.7, ES 6.3.1, even tried with Gradle 4.9

Thank you all, this issue is resolved

For the record (and future readers), you need a signing key to build a non-snapshot version.

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