摘要: 首先用maven构建项目框架,然后写完code之后(详见:http://www.cnblogs.com/flying5/archive/2011/05/04/2078408.html),采用maven package打包成jar包:wordcount.jar。然后拷贝到布置好的hadoop服务器上。构建输入数据:hadoop fs -put input1.txt ./input/wordcounthadoop fs -put input2.txt ./input/wordcount运行job即可:hadoop jar wordcount.jar com.*.wordcount.job.JobR 阅读全文
posted @ 2013-02-19 13:00 Tandy 阅读(495) 评论(0) 推荐(0) 编辑