Part I Hadoop
- Click one of the following:
this link for a Maverick system. 安装一个最近的吧
- Install the package. Do one of the following:
Choose Open with in the download window to use the package manager, or
Choose Save File, save the package to a directory to which you have write access (it can be your home directory) and install it from the command line, for example:
cloudera-cdh3.list 已经有了,就不需要再设置了
4. (Optionally) add a repository key. Add the Cloudera Public GPG Key to your repository by executing the following command:
This key enables you to verify that you are downloading genuine packages.
5.sudo apt-get update sudo apt-get dist-upgrade6. apt-cache search hadoop
通过这个可以查看所能安装的源
7. 安装pseudo
sudo apt-get install hadoop-0.20-conf-pseudo
8. View how the hadoop-0.20-conf-pseudo packages changes your system.
To view the files on Ubuntu systems:
9. 启动一个node上的所有deamon(datanode,namenode, secondnamenode, jobtracker, tasktracker):
$forx in /etc/init.d/hadoop-*;dosudo$x start; done
10. Verify the installation
hadoop jar /usr/lib/hadoop/hadoop-*-examples.jar pi 2 100000
以上步骤都在 user1的权限下进行的,你可以改成你自己的。
Part II , Zookeeper
There are two ZooKeeper server packages:
- The hadoop-zookeeper base package provides the basic libraries and scripts that are necessary to run ZooKeeper servers and clients. The documentation is also included in this package.
- The hadoop-zookeeper-server package contains the init.d scripts necessary to run ZooKeeper as a daemon process. Because hadoop-zookeeper-server depends on hadoop-zookeeper, installing the server package automatically installs the base package.
1. sudo apt-get install hadoop-zookeeper-server
2. To check that zookeeper is started, ps -ef|grep zookeeper
3. if not, please start zookeeper
To start ZooKeeper
Use the following command to start ZooKeeper:
$ sudo /etc/init.d/hadoop-zookeeper-server start
Part III HBase
1. sudo apt-get install hadoop-hbase
2. To list the installed files on Ubuntu and other Debian systems:
3. 参考https://ccp.cloudera.com/display/CDHDOC/HBase+Installation#HBaseInstallation-InstallingHBase
未完待续......
参考文档:
Part I Hadoop
https://ccp.cloudera.com/display/CDHDOC/CDH3+Installation#CDH3Installation-InstallingCDH3Components
http://zhengdong.me/2011/10/20/install-hadoop-with-kerberos-in-ubuntu/
https://ccp.cloudera.com/display/CDHDOC/CDH3+Deployment+in+Pseudo-Distributed+Mode
分布式安装可以参考:
http://jinghong.iteye.com/blog/1051732 or http://wiki.ubuntu.org.cn/%E5%88%A9%E7%94%A8Cloudera%E5%AE%9E%E7%8E%B0Hadoop