a wordcount mapreduce demo run on yarn
Switch branches/tags
Nothing to show
Clone or download
Latest commit bf78273 Jun 1, 2014
Permalink
Failed to load latest commit information.
src/main/java/com/yhh/mapreduce/wordcount new project Jun 1, 2014
README.md Update README.md Jun 1, 2014
data.txt add input demo Jun 1, 2014
pom.xml new project Jun 1, 2014

README.md

yarn-demo

a wordcount mapreduce demo run on yarn

run as:

hadoop jar ~/wordcount.jar com.yhh.mapreduce.wordcount.WordCount input-file output-dir

hadoop jar ~/wordcount.jar com.yhh.mapreduce.wordcount.WordCount data.txt /wordcount/result

data.txt format: split with space, one line contaians one or more words

I write down details in my blog: http://www.cnblogs.com/yanghuahui/p/3763820.html