Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
Hadoop >> mail # user >> access Configuration object in Partioner??


Copy link to this message
-
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:
> 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
>>
>>
>>
>>
>>    
>
>
>
>      
>