You could use provided examples in jar file located at $Yarn_Home/share/hadoop/mapreduce/hadoop-mapreduce-examples-0.23.1.jar
.
example:
yarn jar $Yarn_Home/share/hadoop/mapreduce/hadoop-mapreduce-examples-0.23.1.jar wordcount /in /out
/in
and /out
are located in hdfs. You need to put some text files in /in
and /out
must not exist before.