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). However, when they do you can make your Partitioner implement Configurable (by extending Configured, for example), and this will give you access to the job configuration, since the framework will set it for you on the partitioner.
Cheers Tom On Tue, Jul 14, 2009 at 12:46 PM, Jianmin Woo<[email protected]> wrote: > Thanks a lot for your information, Tom. > > I am using the org.apache.hadoop.mapreduce.Partitioner in 0.20. It seems that > the org.apache.hadoop.mapred.Partitioner is deprecated and will be removed in > the futture. > Do you have some suggestions on this? > > Thanks, > Jianmin > > > > > ________________________________ > From: Tom White <[email protected]> > To: [email protected] > 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, > Tom > > On Tue, Jul 14, 2009 at 10:27 AM, Jianmin Woo<[email protected]> wrote: >> 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 >> >> >> >> > > > >
