3 | | * |
| 3 | * 安裝 Cloudera hadoop 套件 |
| 4 | {{{ |
| 5 | #!sh |
| 6 | #!/bin/bash |
| 7 | dist=$(lsb_release -c | awk '{ print $2 }') |
| 8 | echo "deb http://archive.cloudera.com/debian $dist-cdh2 contrib" > cloudera.list |
| 9 | echo "deb-src http://archive.cloudera.com/debian $dist-cdh2 contrib" >> cloudera.list |
| 10 | sudo mv cloudera.list /etc/apt/sources.list.d/. |
| 11 | sudo apt-get update |
| 12 | sudo apt-cache search hadoop |
| 13 | sudo apt-get install hadoop-0.20 hadoop-0.20-namenode hadoop-0.20-secondarynamenode hadoop-0.20-datanode hadoop-0.20-jobtracker hadoop-0.20-tasktracker hadoop-0.20-pipes hadoop-0.20-conf-pseudo |
| 14 | }}} |