hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From omal...@apache.org
Subject svn commit: r1077812 - /hadoop/common/branches/branch-0.20-security-202/src/mapred/org/apache/hadoop/mapred/JobClient.java
Date Fri, 04 Mar 2011 05:37:28 GMT
Author: omalley
Date: Fri Mar  4 05:37:27 2011
New Revision: 1077812

URL: http://svn.apache.org/viewvc?rev=1077812&view=rev
Log:
commit 732d54511eab79392b14da78487f98f2dc503814
Author: Krishna Ramachandran <ramach@yahoo-inc.com>
Date:   Fri Dec 10 14:30:37 2010 -0800

    Fix Ticket 3963156 - Mapred does not pick up viewfs as default FS when defined in core-site.xml
    
    +++ b/YAHOO-CHANGES.txt
    +     - Mapred does not pick up viewfs as default FS when defined in
    +core-site.xml (Krishna Ramachandran)
    +

Modified:
    hadoop/common/branches/branch-0.20-security-202/src/mapred/org/apache/hadoop/mapred/JobClient.java

Modified: hadoop/common/branches/branch-0.20-security-202/src/mapred/org/apache/hadoop/mapred/JobClient.java
URL: http://svn.apache.org/viewvc/hadoop/common/branches/branch-0.20-security-202/src/mapred/org/apache/hadoop/mapred/JobClient.java?rev=1077812&r1=1077811&r2=1077812&view=diff
==============================================================================
--- hadoop/common/branches/branch-0.20-security-202/src/mapred/org/apache/hadoop/mapred/JobClient.java
(original)
+++ hadoop/common/branches/branch-0.20-security-202/src/mapred/org/apache/hadoop/mapred/JobClient.java
Fri Mar  4 05:37:27 2011
@@ -624,7 +624,7 @@ public class JobClient extends Configure
     //
 
     // Create a number of filenames in the JobTracker's fs namespace
-    FileSystem fs = getFs();
+    FileSystem fs = submitJobDir.getFileSystem(job);
     LOG.debug("default FileSystem: " + fs.getUri());
     if (fs.exists(submitJobDir)) {
       throw new IOException("Not submitting job. Job directory " + submitJobDir
@@ -834,6 +834,7 @@ public class JobClient extends Configure
           }
 
           // Create the splits for the job
+          FileSystem fs = submitJobDir.getFileSystem(jobCopy);
           LOG.debug("Creating splits at " + fs.makeQualified(submitJobDir));
           int maps = writeSplits(context, submitJobDir);
           jobCopy.setNumMapTasks(maps);



Mime
View raw message