摘要:
1:下载hadoop。http://mirror.esocc.com/apache/hadoop/common/hadoop-1.2.1/hadoop-1.2.1.tar.gz2:解压. tar -zxvf3:修改hadoop-env.sh中的JAVA_HOME配置4:用hadoop编译wordcountA:代码位置/soft/hadoop/src/examples/org/apache/hadoop/examplesmkdir wordcount_classes javac -classpath /soft/hadoop/hadoop-core-1.2.1.jar:/soft/hadoop/ 阅读全文