This is my attempt to build a simple single node HDP docker container.
The container installs the following HDP components:
- Hadoop
- Mapreduce
- YARN
- Zookeeper
The underlining system used is Ubuntu 14.04 LTS (unlike most other docker images I found that use centos)
In order to build the image:
docker build --add-host=sandbox:127.0.0.1 -t hdp-sandbox .
In order to run the image:
docker run -h sandbox -it compass
I wanted to have a static-IP to the server so I created a docker network using (Need to run once):
docker network create --subnet=172.18.0.0/16 hdpnet
And then run the image with the following command:
docker run -h sandbox --net hdpnet --ip 172.18.0.22 -itd hdp-sandbox
Notice: Don't forget to add 172.18.0.22 sandbox
to your hosts file
Tip: In order to access with localhost, you can map the following ports -p 8080:8080 -p 8088:8088 -p 8030:8030 -p 8141:8141 -p 8025:8025 -p 8050:8050 -p 8020:8020
- The name sandox is currently hard coded in the files
- The version of the HDP used is hardcoded
- Add better documentaion and code rules of conduct