hadoop-common-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Felix Halim <felix.ha...@gmail.com>
Subject How to set the number of map tasks? (ver 0.20.2)
Date Mon, 21 Jun 2010 19:07:57 GMT
I'm using the new Job class:


There is a way to set the number of reduce tasks:

setNumReduceTasks(int tasks)

However, I don't see how to set the number of MAP tasks?

I tried to set it through mapred-site.xml :


It doesn't work either (launched map task is still small).

I'm wondering, do I have to rename the prefix from "mapred" to
"mapreduce"? like this (for all configurations?):


I added both, and it still doesn't work.

However, the old way of (using JobConf) works.

Is the new Job class is intended to not support altering the number of
map tasks?

FYI, setting the number of reduce tasks seemed to work using the new Job class.

Felix Halim

View raw message