在Ubuntu 12.04安装Hadoop过程详解。
相关阅读:
在Ubuntu 12.10 上安装部署Openstack http://www.linuxidc.com/Linux/2013-08/88184.htm
Ubuntu 12.04 OpenStack Swift单节点部署手册 http://www.linuxidc.com/Linux/2013-08/88182.htm
在Ubuntu上安装OpenStack的Swift组件-installing openstack object storage http://www.linuxidc.com/Linux/2013-08/88180.htm
OpenStack Hands on lab系列 http://www.linuxidc.com/Linux/2013-08/88170.htm
sudo addgroup hadoop
sudo addgroup hadoop
sudo adduser –ingroup hadoop hadoop
sudo adduser –ingroup hadoop hadoop
sudo vim /etc/sudoers
sudo vim /etc/sudoers
给hadoop用户赋予root相同的权限
hadoop ALL=(ALL:ALL) ALL
hadoop ALL=(ALL:ALL) ALL
注意:/etc/sudoers文件可能为readonly文件,修改后使用“:wq!”保存
安装JDK的教程网上资料非常多,故省略
注意:不要安装OpenJDK,在Oracle官网上下载JDK(Oracle JDK不能使用apt-get install安装)
sudo apt-get install openssh-server
sudo apt-get install openssh-server
执行su –命令切换到hadoop用户
su – hadoop
su – hadoop
ssh生成密钥有rsa和dsa两种,默认采用rsa方式
ssh-keygen -t rsa -P ""
ssh-keygen -t rsa -P ""
cd ~/.ssh cat id_rsa.pub >> authorized_keys
ssh localhost
ssh localhost
exit
更为详细介绍见 下一页 : http://www.linuxidc.com/Linux/2013-08/88187p2.htm