Hadoop单机模式

hadoop版本:hadoop-2.0.0-cdh4.2.0.tar

进入hadoop目录,打开etc目录下到hadoop-env.sh,添加以下信息:

#author ylchou
#2013-06-23
export JAVA_HOME=/usr/local/bin/jdk1.6.0_43(视你机器的java安装路径而定)
export HADOOP_HOME=/usr/local/bin/hadoop
export PATH=$PATH:/usr/local/bin/hadoop/bin

 

让环境变量配置生效source

source /usr/local/bin/hadoop/etc/hadoop/hadoop-env.sh

 

查看hadoop的版本:hadoop version

注意:不是hadoop -version

你可能感兴趣的:(Hadoop单机模式)