You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-user@hadoop.apache.org by Weishung Chung <we...@gmail.com> on 2012/03/11 18:27:27 UTC
setOutputKeyComparatorClass in Job
Hi fellow users,
Do you know which are the new methods in the new mapreduce package should I
use as the replacement for the following old API methods in JobConf ?
conf.setOutputKeyComparatorClass
conf.setOutputValueGroupingComparator
Thank you,
Wei Shung
Re: setOutputKeyComparatorClass in Job
Posted by Weishung Chung <we...@gmail.com>.
Thank you so much :D
On Sun, Mar 11, 2012 at 12:33 PM, Harsh J <ha...@cloudera.com> wrote:
> Hi,
>
> On Sun, Mar 11, 2012 at 10:57 PM, Weishung Chung <we...@gmail.com>
> wrote:
> > Do you know which are the new methods in the new mapreduce package
> should I
> > use as the replacement for the following old API methods in JobConf ?
>
> The names have been simplified in the new API.
>
> > conf.setOutputKeyComparatorClass
>
> This, being the sorting comparator, is now Job.setSortComparator(…) @
>
> http://hadoop.apache.org/common/docs/current/api/org/apache/hadoop/mapreduce/Job.html#setSortComparatorClass(java.lang.Class)
>
> > conf.setOutputValueGroupingComparator
>
> This, being the reducer-side grouping comparator, is now
> Job.setGroupingComparator(…) @
>
> http://hadoop.apache.org/common/docs/current/api/org/apache/hadoop/mapreduce/Job.html#setGroupingComparatorClass(java.lang.Class)
>
> --
> Harsh J
>
Re: setOutputKeyComparatorClass in Job
Posted by Harsh J <ha...@cloudera.com>.
Hi,
On Sun, Mar 11, 2012 at 10:57 PM, Weishung Chung <we...@gmail.com> wrote:
> Do you know which are the new methods in the new mapreduce package should I
> use as the replacement for the following old API methods in JobConf ?
The names have been simplified in the new API.
> conf.setOutputKeyComparatorClass
This, being the sorting comparator, is now Job.setSortComparator(…) @
http://hadoop.apache.org/common/docs/current/api/org/apache/hadoop/mapreduce/Job.html#setSortComparatorClass(java.lang.Class)
> conf.setOutputValueGroupingComparator
This, being the reducer-side grouping comparator, is now
Job.setGroupingComparator(…) @
http://hadoop.apache.org/common/docs/current/api/org/apache/hadoop/mapreduce/Job.html#setGroupingComparatorClass(java.lang.Class)
--
Harsh J