Hadoop2.2 对字符统计的测试
打开官方下载链接 http://hadoop.apache.org/releases.html#Download ,选择2.2.0版本的发布包下载后解压到指定路径下: $ tar -zxf hadoop-2.2.0.tar.gz -C /usr/local/ $ cd /usr/local $ ln -s hadoop-2.2.0 hadoop 那么本文中HADOOP_HOME = /usr/local/hadoop/. 3、配置hadoop用户的环境变量 vi ~/.bash_profile ,添加如下内容: # set java environment export JAVA_HOME=/usr/lib/jvm/java-1.6.0-openjdk.x86_64 export CLASSPATH=.:$CLASSPATH:$JAVA_HOME/lib:$JAVA_HOME/jre/lib export PATH=$PATH:$JAVA_HOME/bin:$JAVA_HOME/jre/bin # Michael@micmiu.com # Hadoop export HADOOP_PREFIX="/usr/local/hadoop" export PATH=$PATH:$HADOOP_PREFIX/bin:$HADOOP_PREFIX/sbin export HADOOP