hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From maha...@apache.org
Subject svn commit: r1133692 - /hadoop/common/branches/branch-0.20-security/src/test/org/apache/hadoop/mapred/MRCaching.java
Date Thu, 09 Jun 2011 07:33:35 GMT
Author: mahadev
Date: Thu Jun  9 07:33:34 2011
New Revision: 1133692

URL: http://svn.apache.org/viewvc?rev=1133692&view=rev
Log:
HADOOP-7364. TestMiniMRDFSCaching fails if test.build.dir is set to something other than build/test
(Thomas Graves via mahadev)

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

Modified: hadoop/common/branches/branch-0.20-security/src/test/org/apache/hadoop/mapred/MRCaching.java
URL: http://svn.apache.org/viewvc/hadoop/common/branches/branch-0.20-security/src/test/org/apache/hadoop/mapred/MRCaching.java?rev=1133692&r1=1133691&r2=1133692&view=diff
==============================================================================
--- hadoop/common/branches/branch-0.20-security/src/test/org/apache/hadoop/mapred/MRCaching.java
(original)
+++ hadoop/common/branches/branch-0.20-security/src/test/org/apache/hadoop/mapred/MRCaching.java
Thu Jun  9 07:33:34 2011
@@ -189,7 +189,8 @@ public class MRCaching {
 
   static void setupCache(String cacheDir, FileSystem fs) 
   throws IOException {
-    Path localPath = new Path("build/test/cache");
+    Path localPath = new Path(System.getProperty("test.cache.data", "build/test/cache"));
+
     Path txtPath = new Path(localPath, new Path("test.txt"));
     Path jarPath = new Path(localPath, new Path("test.jar"));
     Path zipPath = new Path(localPath, new Path("test.zip"));



Mime
View raw message