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

Dave Beech commented on MRUNIT-131:
-----------------------------------

If the user hasn't explicitly set one when setting up the driver, we should use 
JobConf's getOutputKeyComparator to get the comparator to use during the 
shuffle. This method contains the logic to decide which comparator to use; 
either from a config parameter, a registered one if present, or fallback to 
default WritableComparator. 
                
> Comparators registered using WritableComparator.define are not used during 
> tests
> --------------------------------------------------------------------------------
>
>                 Key: MRUNIT-131
>                 URL: https://issues.apache.org/jira/browse/MRUNIT-131
>             Project: MRUnit
>          Issue Type: Bug
>    Affects Versions: 0.9.0
>            Reporter: Dave Beech
>            Assignee: Dave Beech
>             Fix For: 1.0.0
>
>
> The comparator to use for sorting map outputs can be set in Hadoop using 
> WritableComparator.define(MyWritable.class, new MyComparator());
> However these comparators are not recognised by MRUnit and are not used by 
> MapReduceDriver tests. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to