As you know, Install Hadoop is not easy. And It require a virtual machine with high configuration. In my post, I will give you the shortest way to have Hadoop in your machine. It is installation via Docker. I assume that you had Docker in your Ubuntu 14.04
Prerequisites
- Docker
- Ubuntu 14.04
- Ram 4G
- CPU 2 core
Install
To install the docker-cloudera-quickstart from docker-hub, simply use the following command:
1 2 |
docker pull thanhson1085/docker-cloudera-quickstart |
Use
To start an instance in BACKGROUND (as daemon):
1 2 |
docker run -i -t -d caioquirino/docker-cloudera-quickstart |
To start an instance in FOREGROUND:
1 2 |
docker run -i -t thanhson1085/docker-cloudera-quickstart |
To open more terminal instances for the running instance:
1 2 3 |
docker ps docker exec -i -t CONTAINER_ID bash -l hadoop df -ls / |
Test MapReduce with WordCount example
Refer to:
- Docker series posts:https://sonnguyen.ws/tag/docker/
- Github: https://github.com/thanhson1085/docker-cloudera-quickstart