ubuntu12.04 安装 hadoop

  1. 下载 cloudera CDH4的安装包 this link for a Precise system.
  2. 安装
1
sudo dpkg -i ~/Downloads/cdh4-repository_1.0_all.deb
  1. 添加
    Repository Key
    1
    $ curl -s http://archive.cloudera.com/cdh4/ubuntu/lucid/amd64/cdh/archive.key | sudo apt-key add -
  2. 安装
1
2
3
sudo apt-get update #更新软件源
sudo apt-cache search hadoop #查看hadoop是否存在
sudo apt-get insall hadoop-0.20-mapreduce-jobtracker