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 sh...@apache.org on 2009/04/17 10:26:26 UTC
svn commit: r765898 - in /hadoop/core/trunk: CHANGES.txt
src/test/org/apache/hadoop/mapred/TestJobHistory.java
Author: sharad
Date: Fri Apr 17 08:26:26 2009
New Revision: 765898
URL: http://svn.apache.org/viewvc?rev=765898&view=rev
Log:
HADOOP-5647. Fix TestJobHistory to not depend on /tmp. Contributed by Ravi Gummadi.
Modified:
hadoop/core/trunk/CHANGES.txt
hadoop/core/trunk/src/test/org/apache/hadoop/mapred/TestJobHistory.java
Modified: hadoop/core/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/core/trunk/CHANGES.txt?rev=765898&r1=765897&r2=765898&view=diff
==============================================================================
--- hadoop/core/trunk/CHANGES.txt (original)
+++ hadoop/core/trunk/CHANGES.txt Fri Apr 17 08:26:26 2009
@@ -409,6 +409,9 @@
HADOOP-5533. Recovery duration shown on the jobtracker webpage is
inaccurate. (Amar Kamat via sharad)
+ HADOOP-5647. Fix TestJobHistory to not depend on /tmp. (Ravi Gummadi
+ via sharad)
+
Release 0.20.0 - Unreleased
INCOMPATIBLE CHANGES
Modified: hadoop/core/trunk/src/test/org/apache/hadoop/mapred/TestJobHistory.java
URL: http://svn.apache.org/viewvc/hadoop/core/trunk/src/test/org/apache/hadoop/mapred/TestJobHistory.java?rev=765898&r1=765897&r2=765898&view=diff
==============================================================================
--- hadoop/core/trunk/src/test/org/apache/hadoop/mapred/TestJobHistory.java (original)
+++ hadoop/core/trunk/src/test/org/apache/hadoop/mapred/TestJobHistory.java Fri Apr 17 08:26:26 2009
@@ -48,7 +48,7 @@
*
* testJobHistoryUserLogLocation
* Run jobs with the given values of hadoop.job.history.user.location as
- * (1)null(default case), (2)"none", and (3)some dir like "/tmp".
+ * (1)null(default case), (2)"none", and (3)some user specified dir.
* Validate user history file location in each case.
*
* testJobHistoryJobStatus
@@ -874,7 +874,7 @@
// Validate user history file location for the given values of
// hadoop.job.history.user.location as
- // (1)null(default case), (2)"none", and (3)some dir "/tmp"
+ // (1)null(default case), (2)"none", and (3)some user specified dir.
public void testJobHistoryUserLogLocation() throws IOException {
MiniMRCluster mr = null;
try {
@@ -904,7 +904,7 @@
inDir = new Path(TEST_ROOT_DIR + "/succeed/input3");
outDir = new Path(TEST_ROOT_DIR + "/succeed/output3");
// validate for the case of any dir
- conf.set("hadoop.job.history.user.location", "/tmp");
+ conf.set("hadoop.job.history.user.location", TEST_ROOT_DIR + "/succeed");
job = UtilsForTests.runJobSucceed(conf, inDir, outDir);
validateJobHistoryUserLogLocation(job.getID(), conf);