Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
0.20.0
-
None
Description
If a sequence file contains MapWritable objects, running "hadoop fs -text" on the file prints the following for each MapWritable:
org.apache.hadoop.io.MapWritable@4f8235ed
To be more useful, it should print out the contents of the map instead. This can be done by adding a toString method to MapWritable, i.e. something like:
public String toString() {
return (new TreeMap<Writable, Writable>(instance)).toString();
}