You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mapreduce-user@hadoop.apache.org by Torsten Curdt <tc...@apache.org> on 2010/06/11 14:05:21 UTC
custom Configuration values
I am setting some custom values on my job configuration:
Configuration conf = new Configuration();
conf.set("job.time.from", time_from);
conf.set("job.time.until", time_until);
Cluster cluster = new Cluster(conf);
Job job = Job.getInstance(cluster);
In the InputFormat I get a difference instance of "Configuration" and
all my custom values are gone.
What's going on?
cheers
--
Torsten
Re: custom Configuration values
Posted by Owen O'Malley <om...@apache.org>.
On Fri, Jun 11, 2010 at 8:17 AM, Torsten Curdt <tc...@vafer.org> wrote:
>> Job job = new Job(conf);
>>
>> and it will work.
>
> Indeed it does. But that constructor is deprecated.
https://issues.apache.org/jira/browse/MAPREDUCE-1456
I guess I'll do that patch next week. *smile*
-- Owen
Re: custom Configuration values
Posted by Torsten Curdt <tc...@vafer.org>.
> Job job = new Job(conf);
>
> and it will work.
Indeed it does. But that constructor is deprecated.
--
Torsten
Re: custom Configuration values
Posted by Owen O'Malley <om...@apache.org>.
On Fri, Jun 11, 2010 at 5:05 AM, Torsten Curdt <tc...@apache.org> wrote:
> I am setting some custom values on my job configuration:
>
> Configuration conf = new Configuration();
>
> conf.set("job.time.from", time_from);
> conf.set("job.time.until", time_until);
>
> Cluster cluster = new Cluster(conf);
Do:
Job job = new Job(conf);
and it will work.
-- Owen