access Configuration object in Partioner??

2009-07-14 Thread Jianmin Woo
Hi, I am considering to implement a Partitioner that needs to access the parameters in Configuration of job. However, there is no straightforward way for this task. Are there any suggestions? Thanks, Jianmin

Re: access Configuration object in Partioner??

2009-07-14 Thread Tom White
Hi Jianmin, Partitioner extends JobConfigurable, so you can implement the configure() method to access the JobConf. Hope that helps. Cheers, Tom On Tue, Jul 14, 2009 at 10:27 AM, Jianmin Woo wrote: > Hi, > > I am considering to implement a Partitioner that needs to access the > parameters in C

Re: access Configuration object in Partioner??

2009-07-14 Thread Jianmin Woo
From: Tom White To: common-user@hadoop.apache.org Sent: Tuesday, July 14, 2009 6:03:34 PM Subject: Re: access Configuration object in Partioner?? Hi Jianmin, Partitioner extends JobConfigurable, so you can implement the configure() method to access the JobConf. Hope that helps. Cheers

Re: access Configuration object in Partioner??

2009-07-14 Thread Tom White
.apache.org > Sent: Tuesday, July 14, 2009 6:03:34 PM > Subject: Re: access Configuration object in Partioner?? > > Hi Jianmin, > > Partitioner extends JobConfigurable, so you can implement the > configure() method to access the JobConf. > > Hope that helps. > > Ch

Re: access Configuration object in Partioner??

2009-07-14 Thread Jianmin Woo
OK, I see. Thanks a lot for the help, Tom. Best Regards, Jianmin From: Tom White To: common-user@hadoop.apache.org Sent: Tuesday, July 14, 2009 8:28:55 PM Subject: Re: access Configuration object in Partioner?? Hi Jianmin, Sorry - I (incorrectly) assumed

Re: access Configuration object in Partioner??

2009-07-14 Thread Amareshwari Sriramadasu
: access Configuration object in Partioner?? Hi Jianmin, Partitioner extends JobConfigurable, so you can implement the configure() method to access the JobConf. Hope that helps. Cheers, Tom On Tue, Jul 14, 2009 at 10:27 AM, Jianmin Woo wrote: Hi, I am considering to implement a Partitioner

Re: access Configuration object in Partioner??

2009-07-14 Thread Owen O'Malley
On Tue, Jul 14, 2009 at 5:28 AM, Tom White wrote: > Hi Jianmin, > > Sorry - I (incorrectly) assumed you were using the old API. > Partitioners don't yet work with the new API (see > https://issues.apache.org/jira/browse/MAPREDUCE-565). MAPREDUCE-565 just went in, so new API partitioners will be

Re: access Configuration object in Partioner??

2009-07-15 Thread Jianmin Woo
@hadoop.apache.org Sent: Wednesday, July 15, 2009 12:05:16 PM Subject: Re: access Configuration object in Partioner?? Your partitioner can implement Configurable (setConf(conf) and getConf()). Please see org.apache.hadoop.mapreduce.lib.partition.BinaryPartitioner Thanks Amareshwari Jianmin Woo wrote: > Tha