操作系统
ubuntu12.04
Hadoop版本
hadoop-2.6
页面中有个链接:
Download a release now!
安装步骤
解压
tar zxvf hadoop-2.6.0.tar.gz
配置环境变量
vi /etc/profile
新增hadoop环境变量(按照自己的安装路径配置)
export HADOOP_HOME=/usr/local/hadoop
export CLASSPATH=.:${JAVA_HOME}/lib:${JRE_HOME}/lib:$HADOOP_HOME/lib
export PATH=${JAVA_HOME}/bin:$PATH:$ANT_HOME/bin:$HADOOP_HOME/bin
export PATH=${JAVA_HOME}/bin:$PATH:$ANT_HOME/bin:$HADOOP_HOME/bin
检测是否安装成功
hadoop version
出现如下信息,安装成功
Hadoop 2.6.0
Subversion https://git-wip-us.apache.org/repos/asf/hadoop.git -r e3496499ecb8d220fba99dc5ed4c99c8f9e33bb1
Compiled by jenkins on 2014-11-13T21:10Z
Compiled with protoc 2.5.0
From source with checksum 18e43357c8f927c0695f1e9522859d6a
This command was run using /usr/local/hadoop/share/hadoop/common/hadoop-common-2.6.0.jar
Subversion https://git-wip-us.apache.org/repos/asf/hadoop.git -r e3496499ecb8d220fba99dc5ed4c99c8f9e33bb1
Compiled by jenkins on 2014-11-13T21:10Z
Compiled with protoc 2.5.0
From source with checksum 18e43357c8f927c0695f1e9522859d6a
This command was run using /usr/local/hadoop/share/hadoop/common/hadoop-common-2.6.0.jar
配置无密码的ssh
安装ssh
sudo apt-get install ssh
生成key
ssh-keygen -t rsa -P ""
cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
测试ssh localhost
如果无密码登录成功,则配置完成