Переглянути джерело

commit af18457e5ebe3b6b9ed2e96ddbed90d00d313fc6
Author: Krishna Ramachandran <ramach@yahoo-inc.com>
Date: Fri Feb 18 10:41:10 2011 -0800

Fix Ticket 4337918 - [STRIPING] default name node is viewfs:///
and if we pass hdfs://path giving error

+++ b/YAHOO-CHANGES.txt
+ Bug:4337918 Fix [STRIPING] default name node is viewfs:/// if we pass
+ hdfs://path giving error - fix in DistributedCache
+


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

Owen O'Malley 14 роки тому
батько
коміт
728d141090

+ 2 - 2
src/mapred/org/apache/hadoop/filecache/DistributedCache.java

@@ -435,7 +435,7 @@ public class DistributedCache {
   @Deprecated
   @Deprecated
   public static void addFileToClassPath(Path file, Configuration conf)
   public static void addFileToClassPath(Path file, Configuration conf)
         throws IOException {
         throws IOException {
-    addFileToClassPath(file, conf, FileSystem.get(conf));
+    addFileToClassPath(file, conf, file.getFileSystem(conf));
   }
   }
 
 
   /**
   /**
@@ -495,7 +495,7 @@ public class DistributedCache {
   public static void addArchiveToClassPath
   public static void addArchiveToClassPath
          (Path archive, Configuration conf)
          (Path archive, Configuration conf)
       throws IOException {
       throws IOException {
-    addArchiveToClassPath(archive, conf, FileSystem.get(conf));
+    addArchiveToClassPath(archive, conf, archive.getFileSystem(conf));
   }
   }
 
 
   /**
   /**