In this post we will discuss about basic MRUnit example for Wordcount algorithm.
Below are the tools used in this example
Eclipse 3.8, mrunit-1.0.0-hadoop2.jar
1. Download mrunit jar from this link and add this to the java project build path (File –> properties –> java build path –> add external jars) in eclipse.
2. As we are testing wordcount algorithm…Below is the code for the same.