I am trying to implement unit test for my hadoop jobs using MRUnit.
For my own Writable, the assertions in
withOutput(K2 k2, V2 v2)
fail. I have tried overriding the equals(Object o) method from Object, but that doesn’t help. Any ideas how to tell MRUnit when two Writables are actually the same?
In order for
runTest()to succeed,int hashCode()has to be overridden.