Hadoop - Keys and Values
- September 14th, 2010
- Write comment
So Keys as well as Values in Hadoop seem a little tricky. Values need to implement the Writable interface Keys need to implement the ComparableWritable not just the Writable interface, otherwise a ClassCastException is thrown Each Key needs to specify the Comparable.compare(...) method carefully, as this is used by Hadoop to group Key-Value-Pairs for the Continue reading →