Files
docker-hadoop/README.md
2024-01-28 22:23:14 +05:30

938 B

Hadoop on Docker

Use this to get a quick version of Hadoop to run on Docker.

  1. Install Docker

  2. Clone this repository

git clone https://github.com/silicoflare/docker-hadoop

  1. Navigate to the directory
cd docker-hadoop

  1. Build the docker image (you may need to use sudo)
docker build -t hadoop .

  1. Wait for the build to finish

  2. Create a new container using the newly created image

docker run -it --name anyname hadoop bash

  1. 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

  1. 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