Hi I’m trying to build for the first time, but I ...
# getting-started
t
Hi I’m trying to build for the first time, but I am getting stuck with this gradle failure
Copy code
Execution failed for task ':metadata-ingestion:codegen'.
> Process 'command 'bash'' finished with non-zero exit value 1
b
my guess is that
jq
is not installed can you try running the task
./gradlew :metadata-ingestion:codegen --info
and see what it says
t
ok thanks, I’ll try that
Copy code
FAILURE: Build failed with an exception.

* What went wrong:
Failed to create Jar file /Users/.../.gradle/caches/jars-8/99bb3272baeb9a2315d3e66fad30256e/buildSrc.jar.
> Unsupported class file major version 61

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

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

Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See <https://docs.gradle.org/6.9.2/userguide/command_line_interface.html#sec:command_line_warnings>

BUILD FAILED in 4s
b
are u using jdk 8?
t
SHould be. I’ll double check
Ah, I wasn’t that time because I tried in a different shell. But after setting the right java home, I tried again and got the same error as before
Copy code
datahub % ./gradlew :metadata-ingestion:codegen --info

...

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':metadata-ingestion:codegen'.
> Process 'command 'bash'' finished with non-zero exit value 1

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

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

Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See <https://docs.gradle.org/6.9.2/userguide/command_line_interface.html#sec:command_line_warnings>

BUILD FAILED in 15s
25 actionable tasks: 9 executed, 16 up-to-date
Copy code
datahub % java -version
java version "1.8.0_333"
Java(TM) SE Runtime Environment (build 1.8.0_333-b02)
Java HotSpot(TM) 64-Bit Server VM (build 25.333-b02, mixed mode)
b
hmm, how about --debug then
t
Picking through the trace now
your guess was right it seems!
Copy code
2022-06-16T17:40:06.846+0900 [QUIET] [system.out] jq is not installed. Please install jq and rerun (<https://stedolan.github.io/jq/>)
2022-06-16T17:40:06.847+0900 [DEBUG] [org.gradle.process.internal.DefaultExecHandle] Changing state to: FAILED
b
yup
t
Thanks for your help!
b
Woohoo! Nice teamwork.
🙏 1
t
I tried switching back to the latest release tag, but it seems to be the same error.
b
no idea. 🤷‍♂️ I normally skip docs-website tasks because i don't need the documentation site 🙂 (by commenting out docs-website in ./settings.gradle)
b
I think this may be related to your python version
Cc @dazzling-judge-80093 - I also saw this earlier
t
Thanks guys. The website doesn’t seem to mention a python version. I will see what I have and try again. https://datahubproject.io/docs/developers/#common-build-issues
FYI I made sure that the default ‘python’ was 3.9.2, cleaned and tried again. I got past that error but stuck on other after a few more tries. I have changed to building piecewise as written on the Developer’s Guide page and that seems to have been successful. Now trying to deploy locally what was built.
b
Okay please let us know - This is a newly introduced issue we need to address on our side