apache / druid

Apache Druid: a high performance real-time analytics database.
https://druid.apache.org/
Apache License 2.0
13.44k stars 3.69k forks source link

Install on Apple M2 fails #16678

Open Geometrein opened 3 months ago

Geometrein commented 3 months ago

Affected Version

Druid 30.0.0 on master

Description

When trying to build Durid from the master branch on M2 Max with these Instructions. command:

mvn clean package -DskipTests -Pdist

fails with these logs:

[INFO] druid-spectator-histogram .......................... SUCCESS [  3.645 s]
[INFO] druid-rabbit-indexing-service ...................... SUCCESS [  3.387 s]
[INFO] distribution ....................................... FAILURE [  0.728 s]
[INFO] druid-it-tools ..................................... SKIPPED
[INFO] druid-it-image ..................................... SKIPPED
[INFO] druid-it-cases ..................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  07:21 min
[INFO] Finished at: 2024-07-01T09:45:24+03:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:3.1.0:exec (generate-binary-license) on project distribution: Command execution failed.: Process exited with an error: 1 (Exit value: 1) -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <args> -rf :distribution
basapuram-kumar commented 3 months ago

@Geometrein Could you please add the more traces before failing.?

mvn clean package -DskipTests -Pdist --pl : distribution

Please add this complete output.Thanks.

GWphua commented 1 month ago

@Geometrein I have also met the same error message, and installing pyyaml as instructed here fixed it for me.

pip3 install pyyaml

Hope this helps! 😄