Execution failed for task ':compileJava'
See original GitHub issueRally version (get with esrally --version
):
esrally 0.4.1
Invoked command:
Configuration file (located in ~/.rally/rally.ini
)):
[meta]
config.version = 6
[system] root.dir = /root/.rally/benchmarks log.root.dir = logs env.name = local
[source] local.src.dir = /root/.rally/benchmarks/src remote.repo.url = https://github.com/elastic/elasticsearch.git
[build] gradle.bin = /opt/app/gradle-2.13/bin/gradle
[provisioning] local.install.dir = install
[runtime] java8.home = /opt/app/jdk1.8.0_101
[benchmarks] local.dataset.cache = ${system:root.dir}/data
[reporting] datastore.type = in-memory datastore.host = datastore.port = datastore.secure = datastore.user = datastore.password =
[tracks] default.url = https://github.com/elastic/rally-tracks
[defaults] preserve_benchmark_candidate = False JVM version: jdk1.8.0_101 OS version: ubutn Description of the problem including expected versus actual behavior:
Steps to reproduce: 1.esrally 2. 3.
Provide logs (if relevant):
esrally.exceptions.BuildError: Executing ‘/opt/app/gradle-2.13/bin/gradle clean’ failed. Here are the last 20 lines in the build log file:
:buildSrc:clean
:buildSrc:compileJava/root/.rally/benchmarks/src/buildSrc/src/main/java/org/elasticsearch/test/NamingConventionsCheck.java:151: error: local variable skipTestsInDisguised is accessed from within inner class; needs to be declared final
if (skipTestsInDisguised == false && integTestClass.isAssignableFrom(clazz)) {
^
1 error
FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':compileJava'.
> Compilation failed; see the compiler error output for details.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 3.092 secs
The full build log is available at [/root/.rally/benchmarks/races/2016-09-21-08-56-55/local/logs/build/build.gradle.tasks.clean.log].
Describe the feature:
Issue Analytics
- State:
- Created 7 years ago
- Comments:6 (4 by maintainers)
Top GitHub Comments
This is the latest version on Github. It builds fine for me and also in our CI environment. However, I could reproduce the problem when using JDK 7 to build (but it should use JDK 8).
You can verify this by typing
gradle -version
. It should show something like this:The important line is:
JVM: 1.8.0_102 (Oracle Corporation 25.102-b14)
and I am almost sure it says JDK 1.7 for you. If that is the case, please haveJAVA_HOME
point to your JDK 8 installation. You can try this by issuingexport JAVA_HOME=/opt/app/jdk1.8.0_101
prior to running Gradle (or Rally). To make this permanent you need to define the export in one of your shell startup files (e.g.~/.bash_profile
)Another hint: If you are not interested in building Elasticsearch from sources, you can also benchmark official Elasticsearch distributions by issuing:
or even benchmark the latest snapshot build of Elasticsearch with:
Sure, you’re welcome. 😃