Hadoop in Docker Desktop Environment
- Clone the repository into Docker Server
git clone $(repository)
- Execute the build (inside the hadoop-docker folder)
docker build . -t hadoop-standalone:1.0
- Start the container
docker run -it -h hadoop01 --name hadoop01 --rm -p 50070:50070 -p 8088:8088 -p 9864:9864 hadoop-standalone:1.0
- Feel Free now to use the container. Some uses:
/root/hadoop/bin/hadoop jar /root/hadoop/share/hadoop/mapreduce/hadoop-mapreduce-examples-3.2.1.jar pi 1 10
- To use WebUI, remember that localhost is only if you´re using Docker in same host you´re using. If you´re using some external environment, you need to get the external IP address.