Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Protoc dependency error

The build process of Ozone requires protoc 2.5.0 which doesn't have a version for Apple Silicon (M1, M1 Pro) machines.  When you build Ozone on macOS with M1(Pro) chip, you will get following error.

...

<settings>
<activeProfiles>
<activeProfile>apple-silicon</activeProfile>
</activeProfiles>

<profiles>
<profile>
<id>apple-silicon</id>
<properties>
<os.detected.classifier>osx-x86_64</os.detected.classifier>
</properties>
</profile>
</profiles>
</settings>


Poorly performing Docker images

By default ozone-runner images (ones created locally after executing docker-compose) are built for linux/amd64 architecture. If you experience issues such as slow startup of Recon/OM/SCM or never-ending commands like ozone sh volume create /volume it might be due to wrong architecture.

To overcome this:

  • clone ozone-docker-runner repo (https://github.com/apache/ozone-docker-runner)
  • build local image for arm64 architecture: docker buildx build --platform linux/arm64 -t apache/ozone-runner:dev . --progress=plain
  • pass the local ozone-runner build version when building ozone distribution: mvn clean install -DskipTests -Ddocker.ozone-runner.version=dev