A Docker image with Oracle Java 8 and Hadoop 2.6.0 installed on Ubuntu<
##Build the image
sudo docker build -t amrabed/hadoop .
The image is also available at Docker repository
##Start a container
sudo docker run [options] amrabed/hadoop [command]
By default, the above
run command starts a MapReduce job on Yarn in a pseudo-distributed mode.
You can run your own custom job by:
Adding command as usual to the
- Updating the
CMDfield of the Dockerfile (You will need to re-build the image)