Author: omalley
Date: Fri Mar 4 04:56:04 2011
New Revision: 1077793
URL: http://svn.apache.org/viewvc?rev=1077793&view=rev
Log:
commit fdc3b0490b88162235b6d267cbbae48e2dbe3bc4
Author: Krishna Ramachandran <[email protected]>
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)
+
Modified:
hadoop/common/branches/branch-0.20-security-patches/src/mapred/org/apache/hadoop/filecache/DistributedCache.java
Modified:
hadoop/common/branches/branch-0.20-security-patches/src/mapred/org/apache/hadoop/filecache/DistributedCache.java
URL:
http://svn.apache.org/viewvc/hadoop/common/branches/branch-0.20-security-patches/src/mapred/org/apache/hadoop/filecache/DistributedCache.java?rev=1077793&r1=1077792&r2=1077793&view=diff
==============================================================================
---
hadoop/common/branches/branch-0.20-security-patches/src/mapred/org/apache/hadoop/filecache/DistributedCache.java
(original)
+++
hadoop/common/branches/branch-0.20-security-patches/src/mapred/org/apache/hadoop/filecache/DistributedCache.java
Fri Mar 4 04:56:04 2011
@@ -435,7 +435,7 @@ public class DistributedCache {
@Deprecated
public static void addFileToClassPath(Path file, Configuration conf)
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
(Path archive, Configuration conf)
throws IOException {
- addArchiveToClassPath(archive, conf, FileSystem.get(conf));
+ addArchiveToClassPath(archive, conf, archive.getFileSystem(conf));
}
/**