Public Repository

Last pushed: 3 years ago
Short Description
Slave node of a Multi-node Hadoop Cluster
Full Description

This is an image of a slave node of a multi-node hadoop cluster on a docker running Ubuntu 14.04. The image was created on docker running on a Ubuntu 14.04 system. The image has been created using div4/hadoop as the base image. The slave node runs the Datanode and Node manager.

The cluster can be set up on a single host using docker link command or on multiple hosts using weave or any other clustering tool. Weave is a good, easy to use and user-friendly tool that can be used to set up a cluster. For weave installation and commands:

To start slave node:

Pull this image and run the container

sudo docker run -it --name hadoop_slave -P -p 50070:50070 -p 50090:50090 div4/hadoop_slave /bin/bash

Dedicated hadoop user group is hadoop_group and user account is hduser1.

su – hduser2
sudo service ssh start
ssh localhost

Update the /etc/hosts file with the IPs assigned to docker containers, using weave or any other clustering tool. In the downloaded containers, the master has been assigned an IP in the subnetwork of cluster. The slave has been assigned IP in the subnetwork of cluster.

vi /etc/hosts

and write to the file master slave1

Follow the steps on master node. And once the cluster is started, check the daemons running


Hadoop Web Interfaces are accessible at http://localhost:50070/ - web UI of the NameNode daemon.
If you are running hadoop on a server on cloud, replace local host with ip of the server running hadoop_master.

If password is required: H4doop

Changes can be made to this multi-host configuration using hadoop configuration files, to run more than one slaves just run the required number of slave containers and edit hadoop config files. These links may be helpful:

Docker Pull Command