Note: this is the master branch - for a particular Hadoop version always check the related branch
If you'd like to try directly from the Dockerfile you can build the image as:
docker build -t dvoros/hadoop:latest .
The image is also released as an official Docker image from Docker's automated build repository - you can always pull or refer the image when launching containers.
docker pull dvoros/hadoop:latest
In order to use the Docker image you have just build or pulled use:
Make sure that SELinux is disabled on the host. If you are using boot2docker you don't need to do anything.
docker run -it dvoros/hadoop:latest /etc/bootstrap.sh -bash
You can run one of the stock examples:
# run mapreduce
hadoop jar $HADOOP_HOME/share/hadoop/mapreduce/hadoop-mapreduce-examples-*.jar grep input output 'dfs[a-z.]+'
# check the output
hdfs dfs -cat output/*
The Hadoop build process is no easy task - requires lots of libraries and their right version, protobuf, etc and takes some time - we have simplified all these, made the build and released a 64b version of Hadoop nativelibs here. (These are automatically pulled during the build of this image.)
Content type
Image
Digest
Size
955.5 MB
Last updated
almost 9 years ago
docker pull dvoros/hadoop