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

Karthik Kambatla commented on MAPREDUCE-2632:
---------------------------------------------

For legit uses of partitioner, this shouldn't be incompatible. However, there 
*could* be folks out there who rely on the getPartition being called for some 
side-effects. Since this is an optimization and we are in no hurry to get this 
in, I plan to check this into trunk. 

The patch itself looks okay, but for one nit in TestMapFileOutputFormat: the 
test defines setGetPartitionCalled but never calls it. 

> Avoid calling the partitioner when the numReduceTasks is 1.
> -----------------------------------------------------------
>
>                 Key: MAPREDUCE-2632
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-2632
>             Project: Hadoop Map/Reduce
>          Issue Type: Improvement
>    Affects Versions: 0.23.0
>            Reporter: Ravi Teja Ch N V
>            Assignee: Sunil G
>         Attachments: 0001-MAPREDUCE-2632.patch, MAPREDUCE-2632-1.patch, 
> MAPREDUCE-2632.patch
>
>
> We can avoid the call to the partitioner when the number of reducers is 
> 1.This will avoid the unnecessary computations by the partitioner.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to