Install on Apple M2 fails
- Dominant language
- Java
- Stars
- 14.1k
- Forks
- 3.8k
- Avg merge
- 2d 58m
- Merged PRs (30d)
- 233
Description
### Affected Version
Druid 30.0.0 on master
### Description
When trying to build Durid from the master branch on M2 Max with [these](https://github.com/apache/druid/tree/master/distribution/docker) 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 -rf :distribution
```
Contributor guide
Research direction
Start with the distribution module and the distribution/docker instructions, reproducing the command `mvn clean package -DskipTests -Pdist` on an Apple M2. Rerun with Maven's `-e` or `-X` options and inspect the `generate-binary-license` execution; done means the distribution build completes successfully on M2.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100