Versions Compared

Key

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

Ozone is a work in progress and there is no official release. To use it, you have to build a package and deploy a cluster.

Table of Contents
outlinetrue
stylesquare

Build Ozone

Instructions at Try out Ozone.

Start Cluster Using Docker

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

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

For more docker-compose commands, please check the end of the Getting started with docker guide

To Shutdown the cluster, please run the command docker-compose down

Run Commands Against Ozone

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

Code Block
languagebash
themeRDark
  docker-compose exec datanode bash

 

The Ozone command shell is documented here.

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
themeRDark
  ozone freon randomkeys --numOfVolumes=10 --numOfBuckets 10 --numOfKeys 10  --replicationType=RATIS --factor=THREE

You can check the OzoneManager UI to see the activity generated by freon. The docker-compose configuration forwards port 9874 of the docker host to the OzoneManager web UI.

http://localhost:9874/#!/metrics/ozoneManager

While you are there, please check out the ozone documentation.

 Content moved to Try out Ozone#StartClusterUsingDocker