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 |
---|
language | bash |
---|
theme | RDark |
---|
title | Github Hadoop Ozone Sources |
---|
|
git clone https://github.com/apache/hadoopozone.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 |
---|
|
footnote |
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 anything and please send us a pull request. All contributions are very welcome. Here are the instructions on how to send Ozone 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 |
---|
language | bash |
---|
theme | RDark |
---|
title | 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,
Code Block |
---|
language | bash |
---|
theme | RDark |
---|
title | Test Local Build |
---|
|
cd hadoop-ozone/dist/target/ozone-*-SNAPSHOT/compose/ozone
docker-compose up -d --scale datanode=3 |
Progress Bar Container |
---|
|
Progress Bar - Hyperlink Step |
---|
title | Evaluate Ozone |
---|
url | Evaluate Try out Ozone |
---|
|
Progress Bar - Hyperlink Step |
---|
title | Running via DockerHub |
---|
url | Running via DockerHub |
---|
|
Progress Bar - Hyperlink Step |
---|
title | Running via Apache Release |
---|
url | Running via Apache Release |
---|
|
Progress Bar - Hyperlink Step |
---|
title | Downloading Sources |
---|
url | Downloading Sources |
---|
| Progress Bar - Hyperlink Step |
---|
title | Building Sources |
---|
url | Building Sources$110692975 |
---|
|
Progress Bar - Hyperlink Step |
---|
title | Single Node Deployment |
---|
url | Single Node Deployment |
---|
|
Progress Bar - Hyperlink Step |
---|
title | Multi Node Ozone Cluster |
---|
url | Multi Node Ozone Cluster |
---|
|
|
...