Hadoop Pseudo Distributed File System
- base image: ubuntu16.04 64 bit
- java: openjdk-8-jre
- default JAVA_HOME:/usr/lib/jvm/java-8-openjdk-amd64
docker run -d --net host --name hdfs dockerq/docker-hdfs
Then browser localhost:50070 to see HDFS WebUI
The default directory of datanode
and namenode
is /hdfsdata
.So you can volumn it in onder to backing up data.
docker run -d --name --net host -v host_data_path:/hdfsdata dockerq/docker-hdfs
If your container's network mode is host
and your host runs SSHD too,you should change your container's sshd binding port using environment SSH_PORT
.
docker run -d --net host -e SSH_PORT=2222 --name hdfs dockerq/docker-hdfs
You should check the config for sshd. Config file lies in /etc/ssh/sshd_config
. More details click
ssh config on Ubuntu
This docker image aims to exploring HDFS and setuping pseudo distributed HDFS quickly.I do not suggest you use it in production environment.