标签:style blog http ar sp java 文件 on div
http://mirrors.hust.edu.cn/apache/hadoop/common/hadoop-2.2.0/hadoop-2.2.0.tar.gz
mkdir wordcount_classes javac -cp classpath -d wordcount_classes WordCount.java jar -cvf wordcount.jar -C wordcount_classes/ .
hadoop fs -mkdir wordCount hadoop fs -mkdir wordCount/input
echo "Hello World Bye World" > file0
echo "Hello Hadoop Goodbye Hadoop" > file1
hadoop fs -put file* wordCount/input
hadoop jar wordcount.jar org.myorg.WordCount wordCount/input wordCount/output hadoop fs -cat /user/cloudera/wordcount/output/part-00000
标签:style blog http ar sp java 文件 on div
原文地址:http://www.cnblogs.com/kxdblog/p/4115230.html