Versions Compared

Key

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

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.

Code Block
languagebash
themeRDark
titleGithub 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

Info
titleContribute

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.


Code Block
languagebash
themeRDark
titleApache 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, 

Code Block
languagebash
themeRDark
titleTest Local Build
cd hadoop-ozone/dist/target/ozone-*-SNAPSHOT/compose/ozone

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

...



Progress Bar Container
step4
Progress Bar - Hyperlink Step
titleStep1Evaluate Ozone
urlEvaluate Try out Ozone
Progress Bar - Hyperlink Step
titleStep2Running via DockerHub
urlRunning via DockerHub
Progress Bar - Hyperlink Step
titleStep3Running via Apache Release
urlRunning via Apache Release
Progress Bar - Hyperlink Step
titleStep4urlDownloading Sources
Progress Bar - Hyperlink Step
title
Step5
urlBuilding Sources$110692975
Progress Bar - Hyperlink Step
titleStep6Single Node Deployment
urlSingle Node Deployment
Progress Bar - Hyperlink Step
titleStep7Multi Node Ozone Cluster
urlMulti Node Ozone Cluster

...