This is my minimal hadoop-base image (based on hadoop-2.4.0 compiled on Arch Linux kernel 3.17.6-1-ARCH x86_64).
First we fire up the keys_host so that we can mount the .ssh volume in hadoop.
sudo docker run --name keyhost ezhaar/key-host
Now we run the hadoop container
sudo docker run -it \
--volumes-from keyhost \
--name htest \
-h master.localdomain \
--dns-search=localdomain \
ezhaar/hadoop-2.4.0
Once the container has started, start the ssh service and then after formatting the namenode, we are ready to play with hadoop.
service ssh start
hdfs namenode -format
hdfs dfs -mkdir /user
hdfs dfs -mkdir /user/root
hdfs dfs -ls
Content type
Image
Digest
sha256:4b8b5afd0…
Size
482.1 MB
Last updated
almost 11 years ago
docker pull ezhaar/docker-hadoop