mirror of
https://github.com/silicoflare/docker-hadoop.git
synced 2026-05-26 12:09:54 +05:30
1.1 KiB
1.1 KiB
Hadoop on Docker
Use this to get a quick version of Hadoop to run on Docker.
-
Install Docker on your host PC
-
Clone your platform specific branch of this repository
# Windows
git clone -b windows --single-branch https://github.com/silicoflare/docker-hadoop
# Mac
git clone -b mac --single-branch https://github.com/silicoflare/docker-hadoop
# Linux
git clone -b linux --single-branch https://github.com/silicoflare/docker-hadoop
- Navigate to the directory
cd docker-hadoop
- Build the docker image (you may need to use sudo)
docker build -t hadoop .
-
Wait for the build to finish
-
Create a new container using the newly created image
docker run -it -p 9870:9870 -p 8088:8088 -p 9864:9864 --name anyname hadoop bash
- Once the prompt appears, execute the following command to initialize everything:
init
- From the next time, just run this to open the prompt. Use the same name that you used to create the container.
docker start anyname
docker exec -it anyname bash
Once in, execute:
restart