Warning | ||||||||
---|---|---|---|---|---|---|---|---|
Only do this if
|
...
- First, it uses a much more smaller common image which doesn't contains Hadoop.
- 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.
Build Ozone
To build Ozone, please checkout the hadoop sources from github or the apache git repository. Then checkout 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 in your hadoop-dist/target directory which could be mapped to the docker containers.
Start the cluster
Code Block |
---|
cd dev-support/compose/ozone
docker-compose up |
For more docker-compose commands, please check the end of the Getting started with docker guideContent moved to Try out Ozone#StartClusterUsingDocker