hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From liang...@apache.org
Subject svn commit: r1579522 - /hbase/branches/0.98/hbase-server/src/test/java/org/apache/hadoop/hbase/HBaseTestingUtility.java
Date Thu, 20 Mar 2014 03:25:39 GMT
Author: liangxie
Date: Thu Mar 20 03:25:39 2014
New Revision: 1579522

URL: http://svn.apache.org/r1579522
Log:
HBASE-10782 Hadoop2 MR tests fail occasionally because of mapreduce.jobhistory.address is
no set in job conf (Shaohui Liu)

Modified:
    hbase/branches/0.98/hbase-server/src/test/java/org/apache/hadoop/hbase/HBaseTestingUtility.java

Modified: hbase/branches/0.98/hbase-server/src/test/java/org/apache/hadoop/hbase/HBaseTestingUtility.java
URL: http://svn.apache.org/viewvc/hbase/branches/0.98/hbase-server/src/test/java/org/apache/hadoop/hbase/HBaseTestingUtility.java?rev=1579522&r1=1579521&r2=1579522&view=diff
==============================================================================
--- hbase/branches/0.98/hbase-server/src/test/java/org/apache/hadoop/hbase/HBaseTestingUtility.java
(original)
+++ hbase/branches/0.98/hbase-server/src/test/java/org/apache/hadoop/hbase/HBaseTestingUtility.java
Thu Mar 20 03:25:39 2014
@@ -2203,6 +2203,10 @@ public class HBaseTestingUtility extends
     if (rmAddress != null) {
       conf.set("yarn.resourcemanager.address", rmAddress);
     }
+    String historyAddress = jobConf.get("mapreduce.jobhistory.address");
+    if (historyAddress != null) {
+      conf.set("mapreduce.jobhistory.address", historyAddress);
+    }
     String schedulerAddress =
       jobConf.get("yarn.resourcemanager.scheduler.address");
     if (schedulerAddress != null) {



Mime
View raw message