hbase-commits mailing list archives

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

URL: http://svn.apache.org/r1579523
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.94/src/test/java/org/apache/hadoop/hbase/HBaseTestingUtility.java

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



Mime
View raw message