mirror of
https://github.com/silicoflare/docker-hadoop.git
synced 2026-05-26 12:09:54 +05:30
5b8193574a57a91d232ddb16c3f4d66a6d0b2d76
Hadoop on Docker
Use this to get a quick version of Hadoop to run on Docker.
-
Install Docker
-
Clone this repository
git clone 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 --name anyname hadoop bash
- Once the Docker prompt appears, execute the following commands one by one:
service ssh restart
stop-all.sh
hdfs namenode -format
start-all.sh
jps
- 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:
service ssh restart
stop-all.sh
start-all.sh
jps
Description
Languages
Dockerfile
71.1%
Shell
28.9%