Kaynağa Gözat

commit 5153057c0f4d5431d73b72f7818ec89d83999de3
Author: Devaraj Das <ddas@yahoo-inc.com>
Date: Tue Feb 16 20:26:25 2010 -0800

MAPREDUCE:181 from https://issues.apache.org/jira/secure/attachment/12436083/jobclient.patch

+++ b/YAHOO-CHANGES.txt
+ MAPREDUCE-181. Fixes an issue in the use of the right config. (ddas)
+
+ MAPREDUCE-1026. Fixes a bug in the backport. (ddas)


git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-0.20-security-patches@1077173 13f79535-47bb-0310-9956-ffa450edef68

Owen O'Malley 14 yıl önce
ebeveyn
işleme
af35a2f28b

+ 2 - 0
src/mapred/org/apache/hadoop/mapred/JobClient.java

@@ -743,6 +743,8 @@ public class JobClient extends Configured implements MRConstants, Tool  {
       Path submitJobFile = JobSubmissionFiles.getJobConfPath(submitJobDir);
       int reduces = job.getNumReduceTasks();
       JobContext context = new JobContext(job, jobId);
+      
+      job = (JobConf)context.getConfiguration();
 
       // Check the output specification
       if (reduces == 0 ? job.getUseNewMapper() : job.getUseNewReducer()) {