hadoop-mapreduce-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From t...@apache.org
Subject svn commit: r1104686 - in /hadoop/mapreduce/branches/branch-0.22: CHANGES.txt src/java/org/apache/hadoop/mapreduce/JobSubmitter.java
Date Wed, 18 May 2011 04:34:01 GMT
Author: todd
Date: Wed May 18 04:34:00 2011
New Revision: 1104686

URL: http://svn.apache.org/viewvc?rev=1104686&view=rev
Log:
MAPREDUCE-2502. JobSubmitter should use mapreduce.job.maps instead of its deprecated equivalent.
Contributed by Eli Collins.

Modified:
    hadoop/mapreduce/branches/branch-0.22/CHANGES.txt
    hadoop/mapreduce/branches/branch-0.22/src/java/org/apache/hadoop/mapreduce/JobSubmitter.java

Modified: hadoop/mapreduce/branches/branch-0.22/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/mapreduce/branches/branch-0.22/CHANGES.txt?rev=1104686&r1=1104685&r2=1104686&view=diff
==============================================================================
--- hadoop/mapreduce/branches/branch-0.22/CHANGES.txt (original)
+++ hadoop/mapreduce/branches/branch-0.22/CHANGES.txt Wed May 18 04:34:00 2011
@@ -208,6 +208,9 @@ Release 0.22.0 - Unreleased
 
     MAPREDUCE-2499. MR part of HADOOP-7291. (eli)
 
+    MAPREDUCE-2502. JobSubmitter should use mapreduce.job.maps instead of
+    its deprecated equivalent. (eli via todd)
+
   OPTIMIZATIONS
     
     MAPREDUCE-1354. Enhancements to JobTracker for better performance and

Modified: hadoop/mapreduce/branches/branch-0.22/src/java/org/apache/hadoop/mapreduce/JobSubmitter.java
URL: http://svn.apache.org/viewvc/hadoop/mapreduce/branches/branch-0.22/src/java/org/apache/hadoop/mapreduce/JobSubmitter.java?rev=1104686&r1=1104685&r2=1104686&view=diff
==============================================================================
--- hadoop/mapreduce/branches/branch-0.22/src/java/org/apache/hadoop/mapreduce/JobSubmitter.java
(original)
+++ hadoop/mapreduce/branches/branch-0.22/src/java/org/apache/hadoop/mapreduce/JobSubmitter.java
Wed May 18 04:34:00 2011
@@ -355,7 +355,7 @@ class JobSubmitter {
       // Create the splits for the job
       LOG.debug("Creating splits at " + jtFs.makeQualified(submitJobDir));
       int maps = writeSplits(job, submitJobDir);
-      conf.setInt("mapred.map.tasks", maps);
+      conf.setInt(MRJobConfig.NUM_MAPS, maps);
       LOG.info("number of splits:" + maps);
 
       // write "queue admins of the queue to which job is being submitted"



Mime
View raw message