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

Todd Lipcon commented on MAPREDUCE-1287:
----------------------------------------

- Can you also make this change to the old API HashPartitioner? 
src/java/org/apache/hadoop/mapred/lib/HashPartitioner.java
- The "else" on a separate line from the '}' is different style than the usual 
Hadoop style. Also a space after 'if' is usual style.

> HashPartitioner calls hashCode() when there is only 1 reducer
> -------------------------------------------------------------
>
>                 Key: MAPREDUCE-1287
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-1287
>             Project: Hadoop Map/Reduce
>          Issue Type: Improvement
>    Affects Versions: 0.22.0
>            Reporter: Ed Mazur
>            Priority: Minor
>             Fix For: 0.22.0
>
>         Attachments: MAPREDUCE-1287.patch
>
>
> HashPartitioner could be optimized to not call the key's hashCode() if there 
> is only 1 reducer.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to