瀏覽代碼

Merge -r 648949:648950 from trunk onto 0.17 branch. Fixes HADOOP-3251.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/core/branches/branch-0.17@648952 13f79535-47bb-0310-9956-ffa450edef68
Devaraj Das 17 年之前
父節點
當前提交
d9e99be862

+ 3 - 0
CHANGES.txt

@@ -589,6 +589,9 @@ Release 0.17.0 - Unreleased
     and/or jobname are not specfied. This helps to avoid wrong assumptions
     made about the job-history log filename in jobhistory.jsp. (acmurthy) 
 
+    HADOOP-3251. Fixes getFilesystemName in JobTracker and LocalJobRunner to
+    use FileSystem.getUri instead of FileSystem.getName. (Arun Murthy via ddas)
+
 Release 0.16.3 - 2008-04-16
 
   BUG FIXES

+ 1 - 1
src/java/org/apache/hadoop/mapred/JobTracker.java

@@ -1693,7 +1693,7 @@ public class JobTracker implements MRConstants, InterTrackerProtocol, JobSubmiss
     if (fs == null) {
       throw new IllegalStateException("FileSystem object not available yet");
     }
-    return fs.getName();
+    return fs.getUri().toString();
   }
 
 

+ 1 - 1
src/java/org/apache/hadoop/mapred/LocalJobRunner.java

@@ -368,7 +368,7 @@ class LocalJobRunner implements JobSubmissionProtocol {
   }
 
   public String getFilesystemName() throws IOException {
-    return fs.getName();
+    return fs.getUri().toString();
   }
   
   public ClusterStatus getClusterStatus() {