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 Iman E <ha...@yahoo.com> on 2009/07/06 06:21:22 UTC

How can I set these job values?

Hi,
The JobConf used to have setNumMapTasks and setMaxMapAttempts. How can I sent these values  if I am using org.apache.hadoop.mapreduce.Job instead of JobConf?
Thanks,
Iman



      

Re: How can I set these job values?

Posted by Iman E <ha...@yahoo.com>.
Thank you very much, Amareshwari.
Iman.




________________________________
From: Amareshwari Sriramadasu <am...@yahoo-inc.com>
To: common-user@hadoop.apache.org
Sent: Sunday, July 5, 2009 10:00:21 PM
Subject: Re: How can I set these job values?

setNumMapTasks is not supported any more. Old api uses this a hint for number of map tasks. The same can be done using FileInputFormat.setMinInputSplitSize and FileInputFormat.setMaxInputSplitSize.

For setting max map attempts, you can set "mapred.map.max.attempts" in configuration.

Thanks
Amareshwari

Iman E wrote:
> Hi,
> The JobConf used to have setNumMapTasks and setMaxMapAttempts. How can I sent these values  if I am using org.apache.hadoop.mapreduce.Job instead of JobConf?
> Thanks,
> Iman
>
>
>
>      
>  


      

Re: How can I set these job values?

Posted by Amareshwari Sriramadasu <am...@yahoo-inc.com>.
setNumMapTasks is not supported any more. Old api uses this a hint for number of map tasks. The same can be done using FileInputFormat.setMinInputSplitSize and FileInputFormat.setMaxInputSplitSize.

For setting max map attempts, you can set "mapred.map.max.attempts" in configuration.

Thanks
Amareshwari

Iman E wrote:
> Hi,
> The JobConf used to have setNumMapTasks and setMaxMapAttempts. How can I sent these values  if I am using org.apache.hadoop.mapreduce.Job instead of JobConf?
> Thanks,
> Iman
>
>
>
>       
>