You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by ma...@apache.org on 2011/06/08 10:27:49 UTC
svn commit: r1133282 - in /hadoop/common/branches/branch-0.20-security-205:
CHANGES.txt src/test/org/apache/hadoop/mapred/MRCaching.java
Author: mahadev
Date: Wed Jun 8 08:27:49 2011
New Revision: 1133282
URL: http://svn.apache.org/viewvc?rev=1133282&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-205/CHANGES.txt
hadoop/common/branches/branch-0.20-security-205/src/test/org/apache/hadoop/mapred/MRCaching.java
Modified: hadoop/common/branches/branch-0.20-security-205/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/common/branches/branch-0.20-security-205/CHANGES.txt?rev=1133282&r1=1133281&r2=1133282&view=diff
==============================================================================
--- hadoop/common/branches/branch-0.20-security-205/CHANGES.txt (original)
+++ hadoop/common/branches/branch-0.20-security-205/CHANGES.txt Wed Jun 8 08:27:49 2011
@@ -64,7 +64,10 @@ Release 0.20.205.0 - unreleased
MAPREDUCE-2558. Add queue-level metrics 0.20-security branch - test fix
(jeffrey nasbit via mahadev)
-
+
+ HADOOP-7364. TestMiniMRDFSCaching fails if test.build.dir is set to something other
+ than build/test. (Thomas Graves via mahadev)
+
Release 0.20.204.0 - unreleased
NEW FEATURES
Modified: hadoop/common/branches/branch-0.20-security-205/src/test/org/apache/hadoop/mapred/MRCaching.java
URL: http://svn.apache.org/viewvc/hadoop/common/branches/branch-0.20-security-205/src/test/org/apache/hadoop/mapred/MRCaching.java?rev=1133282&r1=1133281&r2=1133282&view=diff
==============================================================================
--- hadoop/common/branches/branch-0.20-security-205/src/test/org/apache/hadoop/mapred/MRCaching.java (original)
+++ hadoop/common/branches/branch-0.20-security-205/src/test/org/apache/hadoop/mapred/MRCaching.java Wed Jun 8 08:27:49 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"));