hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alt Control <altcontrolb...@gmail.com>
Subject Re: Declaring custom secondary sort in map reduce using initTableMapReduceUtil
Date Mon, 11 Jul 2011 19:17:03 GMT
The problem is that I don't understand the difference between JobConf to Job
and Configuration
and I didn't find any information on it.
I understand part of it though, but couldn't understand how to define a
custom comparator and grouping classed.
Can you point to the relevant functions or examples in the mapreduce


On Mon, Jul 11, 2011 at 2:57 PM, Stack <stack@duboce.net> wrote:

> On Mon, Jul 11, 2011 at 10:40 AM, Alt Control <altcontrolblog@gmail.com>
> wrote:
> > Problem is, the example uses JobConf class, while I use
> > initTableMapReduceUtil to configure the job.
> > I don't really understand the relationship between JobConf, Configuration
> > and initTableMapReduceUtil, so can anyone
> > please explain how I can implement the equivalent of the following
> JobConf
> > calls?
> >
> There are two 'mapreduce' packages, 'org.apache.hadoop.mapred' and
> 'org.apache.hadoop.mapreduce'.  The latter has newer APIs.  HBase
> favors the latter in that most of our new functionality is done inside
> the 'mapreduce' package using hadoop 'mapreduce' newer apis (but our
> old stuff should work too).
> Looking at your link above, it looks like Josh is writing against
> 'org.apache.hadoop.mapred' and so I guess you are struggling with the
> difference in mapreduce apis; i.e. you are asking a question similar
> to this one:
> http://hadoop-common.472056.n3.nabble.com/hadoop-mapreduce-and-hadoop-mapred-td40819.html
> Can you study the examples in the hbase mapreduce package and figure
> the mapping from 'mapred' to 'mapreduce', and of JobConf to Job and
> Configuration (perhaps googling on the difference you'll turn up some
> helpful discussion from the mapreduce lists?).
> St.Ack

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message