-
First i did create a unit test for my
WordCountMapper
class like this, Basic idea here is you set input and expected output on the test class and then execute the test by calling mapDriver.runTest() -
Then i did create a unit test for my
WordCountReducer
class like this - Last part was to develop a end to end test, in this case you setup both mapper and reducer class that you want to set and then run it end to end
Use MRUnit for testing your MapReduce program
In the WordCount(HelloWorld) MapReduce program entry i blogged about how you can create your WordCount (HelloWorld) MapReduce program. You can use Apache MRUnit which is a unit testing framework for testing your MapReduce program. I used MRUnit for developing unit tests for my WordCount program.
Subscribe to:
Post Comments (Atom)
1 comment:
Thanks for info....
Website development in Bangalore
Post a Comment