Building Apache Ozone on Mac M3 #6783
siddhantsangwan
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Using Rosetta (non native build)
Check if Rosetta is already installed:
Install Rosetta:
Next, follow https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=217392150 and then build Ozone with the usual
mvn clean package -DskipTests -DskipShade.Native Build
I found a way to make this work through a lot of debugging, googling, and experimentation. Note that I had already installed Rosetta at this point, so I'm not even 100% sure that this is actually a native build.
settings.xml (skip this if you hadn't used Rosetta earlier)
If you had edited your
~/.m2/settings.xmlearlier for Rosetta, use a different .xml file for the native build. You can use the-soption of themvncommand to use a different .xml file while building.For example, I have two .xml files in
~/.m2. The first is calledsettings.xmland I use this for the native build (the build uses this by default):The second is called
s.xmland I use this with Rosetta:My build command for Rosetta is
mvn clean package -DskipTests -DskipShade -s s.xml.Change pom.xml files
Follow the commands in the 'Protobuf' section here https://gist.github.com/smengcl/6a269f44d909ef9245a9ad8c7c6d41e0/#protobuf. Next, apply the following diff. It changes the versions of some dependencies in various
pom.xmlfiles. Replace~/.m2with the path to your.m2directory.Beta Was this translation helpful? Give feedback.
All reactions