hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Amareshwari Sriramadasu <amar...@yahoo-inc.com>
Subject Re: Deprecate JobClient.getCommandLineConfig?
Date Wed, 31 Dec 2008 04:49:31 GMT
Dhruba Borthakur wrote:
> The method JobClient.getCommandLineConfig and JobClient.setCommandLineOption
> were public APIs but seem to have disappeared starting from the 0.20
> release. Is this on purpose? If so, what is the alternative method to
> retrieve the job's conf?
>
> thanks
> dhruba
>
>   
Hi Dhruba,

Yes. It is done on purpose through HADOOP-3986. The configuration is 
static configuration in JobClient,  it is not the Job Configuration. It 
was used  to  parse  -libjars, -files and -archives options only, if the 
application does not implement Tool as they are part of GenericOptions.

Where do you to want access the Job configuration? If it is in map() or 
reduce(), you should use configure() method.

Thanks
Amareshwari

Mime
View raw message