Hi,

You can develop your unit tests by using classes under src/test. Infact you may find MiniMRCluster and MiniMRDFS very useful. Alternatively you may invoke the program in local mode, with a smaller input to check the outcomes.


kate rhodes wrote:
Can anyone point me to some examples of unit tests for Mapper and
Reducer classes?

I'm finding plenty of tests for the infrastructure but no good
examples of how to test that the mappers and reducers I've written
actually do what i think they do...

There's got to be a better way than starting up a job and seeing what
the end result is... plus that would be a system test not a unit
test...

Reply via email to