You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-user@hadoop.apache.org by bikash sharma <sh...@gmail.com> on 2011/04/04 21:22:58 UTC

hadoop parameters config files location

Hi,
I want to change the following hadoop parameters before launching TeraSort
program:
io.sort.factor
io.sort.mb
mapreduce.reduce.tasks
io.file.buffer.size
io.sort.record.percent

I tried to change these properties by putting them as property values in
core-site.xml file under conf directory.
However, I am unable to observe the effect of my changes to these
parameters.

Could someone elaborate as to which config files, these parameters need to
be configured like core-site.xml or mapred-site.xml or hdfs-site.xml.

Thanks,
Bikash

Re: hadoop parameters config files location

Posted by bikash sharma <sh...@gmail.com>.
Thanks Harsh.

On Mon, Apr 4, 2011 at 3:33 PM, Harsh Chouraria <ha...@cloudera.com> wrote:

> Hello,
>
> On Tue, Apr 5, 2011 at 12:52 AM, bikash sharma <sh...@gmail.com>
> wrote:
> > Hi,
> > I want to change the following hadoop parameters before launching
> TeraSort
> > program:
> > io.sort.factor
> > io.sort.mb
> > mapreduce.reduce.tasks
> > io.file.buffer.size
> > io.sort.record.percent
>
> Making these changes in the mapred-site.xml should be fine.
>
> As a lazy fix, set all those property changes as <final>true</final>.
> This would enforce it over the defaults that are being used instead.
> [1]'s probably why it doesn't get picked up.
>
> Or pass generic options (with -Dprop=val) while launching the program,
> if it accepts that.
>
> [1] -
> http://wiki.apache.org/hadoop/FAQ#How_do_I_get_my_MapReduce_Java_Program_to_read_the_Cluster.27s_set_configuration_and_not_just_defaults.3F
>
> --
> Harsh J
> Support Engineer, Cloudera
>

Re: hadoop parameters config files location

Posted by Harsh Chouraria <ha...@cloudera.com>.
Hello,

On Tue, Apr 5, 2011 at 12:52 AM, bikash sharma <sh...@gmail.com> wrote:
> Hi,
> I want to change the following hadoop parameters before launching TeraSort
> program:
> io.sort.factor
> io.sort.mb
> mapreduce.reduce.tasks
> io.file.buffer.size
> io.sort.record.percent

Making these changes in the mapred-site.xml should be fine.

As a lazy fix, set all those property changes as <final>true</final>.
This would enforce it over the defaults that are being used instead.
[1]'s probably why it doesn't get picked up.

Or pass generic options (with -Dprop=val) while launching the program,
if it accepts that.

[1] - http://wiki.apache.org/hadoop/FAQ#How_do_I_get_my_MapReduce_Java_Program_to_read_the_Cluster.27s_set_configuration_and_not_just_defaults.3F

-- 
Harsh J
Support Engineer, Cloudera