Versions Compared

Key

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

...

To build Ozone, please check out the Hadoop sources from the Apache Git Rep. Then check out trunk and build it with the hdds Maven profile enabled.
Code Block
languagebash
  git clone git://git.apache.org/hadoop.git
  cd hadoop && git checkout trunk
  mvn clean package install -Phdds -DskipTests=true -Dmaven.javadoc.skip=true -Pdist -Dtar -DskipShade

...

After building the package, run the following command in the git root directory.

Code Block
languagebash
  cd $(git rev-parse --show-toplevel)/hadoop-dist/target/ozone-?.?.?-SNAPSHOT/compose/ozone
  docker-compose up -d

...

To run commands on your Ozone cluster please ssh into any DataNode.

Code Block
languagebash
  docker-compose exec datanode bash

...

Alternatively, you can try running freon, the load generator for ozone. The following command creates a volume, ten buckets and writes one hundred keys to each bucket using corona.

Code Block
languagebash
  ozone freon -mode offline -validateWrites -numOfVolumes 1 -numOfBuckets 10 -numOfKeys 100

...