hadoop-mapreduce-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alejandro Abdelnur (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (MAPREDUCE-4807) Allow MapOutputBuffer to be pluggable
Date Wed, 28 Nov 2012 16:32:59 GMT

    [ https://issues.apache.org/jira/browse/MAPREDUCE-4807?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13505625#comment-13505625
] 

Alejandro Abdelnur commented on MAPREDUCE-4807:
-----------------------------------------------

Arun,

Regarding your #1 comment, I don't think is a good idea given that he MOC is instantiated
using ReflectionUtils.newInstance(). Thus you cannot pass the context, you need the init().
It the same pattern used MAPREDUCE-4049.

{code}
  private <KEY, VALUE> MapOutputCollector<KEY, VALUE>
          createMapOutputCollector(JobConf job, TaskReporter reporter)
    throws IOException, ClassNotFoundException {
    MapOutputCollector<KEY, VALUE> collector
      = (MapOutputCollector<KEY, VALUE>)
       ReflectionUtils.newInstance(
                        job.getClass(JobContext.MAP_OUTPUT_COLLECTOR_CLASS_ATTR,
                        MapOutputBuffer.class, MapOutputCollector.class), job);
    LOG.info("Map output collector class = " + collector.getClass().getName());
    MapOutputCollector.Context context =
                           new MapOutputCollector.Context(this, job, reporter);
    collector.init(context);
    return collector;
  }
{code}
                
> Allow MapOutputBuffer to be pluggable
> -------------------------------------
>
>                 Key: MAPREDUCE-4807
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-4807
>             Project: Hadoop Map/Reduce
>          Issue Type: Sub-task
>    Affects Versions: 2.0.2-alpha
>            Reporter: Arun C Murthy
>            Assignee: Mariappan Asokan
>             Fix For: 2.0.3-alpha
>
>         Attachments: COMBO-mapreduce-4809-4807.patch, mapreduce-4807.patch, mapreduce-4807.patch,
mapreduce-4807.patch, mapreduce-4807.patch
>
>
> Allow MapOutputBuffer to be pluggable

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message