Install Cloudera CDH Cluster on Docker

name@host:/#wget https://raw.github.com/zettio/weave/master/weave
name@host:/#sudo mv weave /usr/local/bin/
name@host:/#sudo chmod +x /usr/local/bin/weave
name@host:/#weave launch
name@host:/#eval $(weave env)
name@host:/#docker run --name=cnode1 --hostname=cnode1.weave.local -it ubuntu /bin/bash
name@host:/#eval $(weave env)
name@host:/#docker run --name=cnode2 --hostname=cnode2.weave.local -it ubuntu /bin/bash

root@cnode1:~#passwd
Enter new UNIX password:root
root@cnode1:~#apt-get install ssh-server
root@cnode1:~#sed -i 's/PermitRootLogin without-password/PermitRootLogin yes/' /etc/ssh/sshd_config
root@cnode1:~#/etc/init.d/ssh start
root@cnode1:~#ssh-keygen

root@cnode2:~#passwd
Enter new UNIX password:root
root@cnode2:~#apt-get install ssh-server
root@cnode2:~#sed -i 's/PermitRootLogin without-password/PermitRootLogin yes/' /etc/ssh/sshd_config
root@cnode2:~#/etc/init.d/ssh start
root@cnode2:~#ssh-keygen

root@cnode1:~#scp /root/.ssh/id_rsa.pub root@cnode2:/tmp
root@cnode2:~#cat /tmp/id_rsa.pub >> ~/.ssh/authorized_keys
root@cnode2:~#chmod 700 ~/.ssh
root@cnode2:~#chmod 600 ~/.ssh/authorized_keys

root@cnode1:~#wget http://archive.cloudera.com/cm5/installer/latest/cloudera-manager-installer.bin
root@cnode1:~#chmod u+x cloudera-manager-installer.bin
root@cnode1:~#sudo ./cloudera-manager-installer.bin

root@cnode1:/# ifconfig
eth0 Link encap:Ethernet HWaddr 02:42:ac:11:00:07
inet addr:172.17.0.7 Bcast:0.0.0.0
// open http://172.17.0.7:7180
// login with admin/admin
// select Cloudera Enterprise
Data Hub Edition Trial
//click continue
//enter cnode1.weave.local
cnode2.weave.local as server
//click continiue
// select Install Oracle Java SE Development Kit (JDK)
// select Single User Mode
// enter root/root as username and password
// click continue
// click continue
// click finish