- Container run
root@ruo91:~# docker run -d -P --name "Hadoop" ruo91/hadoop
- SSH login
root password : hadoop
root@ruo91:~# docker port Hadoop 22
0.0.0.0:49170
root@ruo91:~# ssh root@localhost -p 49170
- Hadoop run
root@hadoop:~# start-all.sh
root@hadoop:~# jps
624 NodeManager
209 DataNode
659 Jps
132 NameNode
540 ResourceManager
334 SecondaryNameNode
- Testing
root@hadoop:~# for((i=0; i<10; i++)) do echo ${i}; done > test.log
root@hadoop:~# hdfs dfs -copyFromLocal test.log /
root@hadoop:~# hdfs dfs -ls /
Found 1 items
-rw-r--r-- 3 root supergroup 20 2014-05-03 04:50 /test.log
root@hadoop:~# exit
root@ruo91:~# docker port Hadoop 50070
0.0.0.0:49181
- Web
Utilities - Browse th file system
Thanks. :-)