Build Ozone
Get the Apache Hadoop source code from the Apache Git repository. Then check out trunk and build it with the hdds
Maven profile enabled.
git clone https://gitbox.apache.org/repos/asf/hadoop.git cd hadoop git checkout trunk mvn clean install -Phdds -DskipTests=true -Dmaven.javadoc.skip=true -Pdist -Dtar -DskipShade
Initial compilation may take over 30 minutes as Maven downloads dependencies. skipShade
makes compilation a little faster for development and it is not required.
This will give you a tarball in your distribution directory. Here is an example of the tarball that will be generated.
hadoop-ozone/dist/target/ozone-0.3.0-SNAPSHOT.tar.gz
Partial build
Ozone requires just a subset of the hadoop submodules (for example hdfs/common projects are needed but mapreduce/yarn projects are not). The build could be make faster with building just the ozone-dist project (-pl :hadoop-ozone-dist) and all of the dependencies (-am)
mvn clean install -Phdds -DskipTests=true -Dmaven.javadoc.skip=true -Pdist -Dtar -DskipShade -am -pl :hadoop-ozone-dist