You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1

Apache takes great pride in the fact that all Apache releases are source releases. We like to empower users to be in control of the software they use. Apache Ozone is no exception, there are multiple ways to get the Apache Ozone sources.

Getting sources from GitHub


The easiest and most simple way to get the Apache Hadoop and Apache Ozone sources is to clone the Apache repo on Github.

Github Ozone Sources
git clone https://github.com/apache/ozone.git
cd hadoop-ozone
mvn clean install -f pom.ozone.xml  -DskipTests=true -Dmaven.javadoc.skip=true

This command will just build ozone ( assuming that you have all the Hadoop dependencies on your build machine like protobuf) and produce a tarball in your distribution directory. Here is an example of the tarball that will be generated (the version number will change based on what version you are pulling)

hadoop-ozone/dist/target/ozone-0.5.0-SNAPSHOT.tar.gz

Contribute

This would be good time to make a small change in Ozone and try to contribute it back to us. Fix a typo, fix a newbie JIRA and please send us a pull request. 

All contributions are very welcome.

Here are the instructions on how to send a pull request for Ozone -- Using Github for Ozone development

Build From a Source Release

You can also choose to download and build stable releases of Ozone. The Ozone download pages contain both source and binary releases. You can download one of the source release tarball and build it. If you are downloading source releases from Apache releases, please do realize the Ozone is a work in progress and all the changes will be made to the git repo. So if you intend to make changes to Ozone, or what to look at what is new in Ozone, you are better of by getting a git clone and just checking out the tagged release version.


Having the sources for the binary that you are running is very handy, for example if you want to look up what a stack trace in your log file means.

Here is how you can download the sources tarball from Apache and build the binaries.


Apache Source Downloads
tar xvf hadoop-ozone-0.4.0-alpha-src.tar.gz
cd hadoop-ozone-0.4.0
mvn clean install -f pom.ozone.xml  -DskipTests=true -Dmaven.javadoc.skip=true


To run or test out the your local build, 

Test Local Build
cd hadoop-ozone/dist/target/ozone-*-SNAPSHOT/compose/ozone

docker-compose up -d --scale datanode=3




  • No labels