Issue Details (XML | Word | Printable)

Key: HADOOP-1230
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Owen O'Malley
Reporter: Owen O'Malley
Votes: 1
Watchers: 21
Operations

If you were logged in you would be able to see more operations.
Hadoop Common

Replace parameters with context objects in Mapper, Reducer, Partitioner, InputFormat, and OutputFormat classes

Created: 09/Apr/07 06:30 PM   Updated: 08/Jul/09 04:52 PM
Return to search
Component/s: None
Affects Version/s: None
Fix Version/s: 0.20.0

Time Tracking:
Not Specified

File Attachments:
  Size
Text File Licensed for inclusion in ASF works context-objs-2.patch 2008-03-01 06:08 PM Owen O'Malley 12 kB
Text File Licensed for inclusion in ASF works context-objs-3.patch 2008-06-26 12:48 PM Tom White 13 kB
Text File Licensed for inclusion in ASF works context-objs.patch 2008-02-29 07:24 AM Owen O'Malley 13 kB
Text File Licensed for inclusion in ASF works h1230.patch 2008-12-15 07:24 PM Owen O'Malley 285 kB
Text File Licensed for inclusion in ASF works h1230.patch 2008-12-15 05:30 PM Owen O'Malley 281 kB
Text File Licensed for inclusion in ASF works h1230.patch 2008-12-13 12:45 AM Owen O'Malley 278 kB
Text File Licensed for inclusion in ASF works h1230.patch 2008-12-12 05:24 PM Owen O'Malley 258 kB
Text File Licensed for inclusion in ASF works h1230.patch 2008-12-09 07:36 PM Owen O'Malley 208 kB
Issue Links:
Blocker
 
Dependants
 
Reference
 

Hadoop Flags: Reviewed
Release Note: Replaced parameters with context obejcts in Mapper, Reducer, Partitioner, InputFormat, and OutputFormat classes.
Resolution Date: 15/Dec/08 10:22 PM


 Description  « Hide
This is a big change, but it will future-proof our API's. To maintain backwards compatibility, I'd suggest that we move over to a new package name (org.apache.hadoop.mapreduce) and deprecate the old interfaces and package. Basically, it will replace:

package org.apache.hadoop.mapred;
public interface Mapper extends JobConfigurable, Closeable { void map(WritableComparable key, Writable value, OutputCollector output, Reporter reporter) throws IOException; }

with:

package org.apache.hadoop.mapreduce;
public interface Mapper extends Closable { void map(MapContext context) throws IOException; }

where MapContext has the methods like getKey(), getValue(), collect(Key, Value), progress(), etc.



 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Owen O'Malley made changes - 29/Feb/08 07:24 AM
Field Original Value New Value
Attachment context-objs.patch [ 12376792 ]
Owen O'Malley made changes - 01/Mar/08 06:08 PM
Attachment context-objs-2.patch [ 12376907 ]
Tom White made changes - 09/Apr/08 02:54 PM
Link This issue is related to HADOOP-3219 [ HADOOP-3219 ]
Tom White made changes - 16/Jun/08 02:32 PM
Link This issue relates to HADOOP-3566 [ HADOOP-3566 ]
Tom White made changes - 26/Jun/08 12:48 PM
Attachment context-objs-3.patch [ 12384760 ]
Tom White made changes - 24/Jul/08 03:15 PM
Link This issue is related to HADOOP-3822 [ HADOOP-3822 ]
Tom White made changes - 08/Sep/08 12:57 PM
Link This issue blocks HADOOP-3566 [ HADOOP-3566 ]
Tom White made changes - 08/Sep/08 12:57 PM
Link This issue relates to HADOOP-3566 [ HADOOP-3566 ]
Tom White made changes - 13/Nov/08 06:12 AM
Link This issue blocks HADOOP-3788 [ HADOOP-3788 ]
Owen O'Malley made changes - 09/Dec/08 07:36 PM
Attachment h1230.patch [ 12395669 ]
Owen O'Malley made changes - 12/Dec/08 05:24 PM
Attachment h1230.patch [ 12395953 ]
Owen O'Malley made changes - 13/Dec/08 12:45 AM
Attachment h1230.patch [ 12395983 ]
Owen O'Malley made changes - 15/Dec/08 05:30 PM
Attachment h1230.patch [ 12396105 ]
Owen O'Malley made changes - 15/Dec/08 05:30 PM
Status Open [ 1 ] Patch Available [ 10002 ]
Fix Version/s 0.20.0 [ 12313438 ]
Owen O'Malley made changes - 15/Dec/08 07:24 PM
Attachment h1230.patch [ 12396117 ]
Owen O'Malley made changes - 15/Dec/08 10:22 PM
Resolution Fixed [ 1 ]
Hadoop Flags [Reviewed]
Status Patch Available [ 10002 ] Resolved [ 5 ]
Robert Chansler made changes - 25/Mar/09 07:02 PM
Release Note Replaced parameters with context obejcts in Mapper, Reducer, Partitioner, InputFormat, and OutputFormat classes.
Nigel Daley made changes - 23/Apr/09 07:17 PM
Status Resolved [ 5 ] Closed [ 6 ]
Owen O'Malley made changes - 08/Jul/09 04:52 PM
Component/s mapred [ 12310690 ]