Bläddra i källkod

commit fdc3b0490b88162235b6d267cbbae48e2dbe3bc4
Author: Krishna Ramachandran <ramach@yahoo-inc.com>
Date: Thu Feb 17 18:03:39 2011 -0800

Fix Ticket 4337918 - [STRIPING] default name node is viewfs:/// and if we pass
updated YAHOO-CHANGES.txt

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


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

Owen O'Malley 14 år sedan
förälder
incheckning
dd55266ae1
1 ändrade filer med 2 tillägg och 2 borttagningar
  1. 2 2
      src/mapred/org/apache/hadoop/filecache/DistributedCache.java

+ 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));
   }
   }
 
 
   /**
   /**