Versions Compared

Key

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

Ozone is a work in progress and currently lives in a branch. To use it, you have to build a package and deploy a cluster.

Building

Warning

Only do this if

Jira
serverASF JIRA
serverId5aa69414-a9e9-3523-82ec-879b028fb15b
keyHDFS-12469
is merged. (Or use the patch).

...

  1. First, it uses a much more smaller common image which doesn't contains Hadoop.
  2. Second, the real Hadoop should be built from the source and the dist director should be mapped to the container.

With this method you can start a full cluster on your local machine from your own build.

...

Ozone

To build Ozone, please

...

check out the

...

Hadoop sources from

...

Github, Then check out the ozone branch

...

HDFS-7240 and build it.
Code Block
 git checkout HDFS-7240
 mvn clean package -DskipTests=true -Dmaven.javadoc.skip=true -Pdist -Dtar -DskipShade

Note: *skipShade* is just to make compilation faster and not really required.

This will give you a directory tarball in your distribution directory. Here is an example of the tarball that will be generated.

* `~/apache/hadoop/hadoop-dist/target directory which could be mapped to the docker containers. 

...

/hadoop-project-dist-3.1.0-SNAPSHOT.tar.gz`

At this point, we have an option to set up a physical cluster or run ozone via docker.

Start an ozone cluster using docker

Code Block
cd dev-support/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 run the command docker-compose down


Running commands against ozone

 

To run commands on your dozone cluster