Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
0.5.0
-
None
-
None
Description
Currently, the application specifies the types of the input keys and values and the RecordReader checks them for consistency. It would make more sense to have the RecordReader define the types of keys that it will produce. Therefore, I propose that we add two new methods to RecordReader:
WritableComparable createKey();
Writable createValue();
Note that I propose adding them to the RecordReader rather than the InputFormat, so that they can specific to a particular input split.
Attachments
Attachments
Issue Links
- is duplicated by
-
HADOOP-372 should allow to specify different inputformat classes for different input dirs for Map/Reduce jobs
- Closed