HBASE-10782 Hadoop2 MR tests fail occasionally because of mapreduce.jobhistory.address is no set in job conf (Shaohui Liu)

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1579520 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
liangxie 2014-03-20 03:25:00 +00:00
parent 8b00ce12bf
commit c729de9aa0
1 changed files with 4 additions and 0 deletions

View File

@ -2203,6 +2203,10 @@ public class HBaseTestingUtility extends HBaseCommonTestingUtility {
if (rmAddress != null) { if (rmAddress != null) {
conf.set("yarn.resourcemanager.address", rmAddress); conf.set("yarn.resourcemanager.address", rmAddress);
} }
String historyAddress = jobConf.get("mapreduce.jobhistory.address");
if (historyAddress != null) {
conf.set("mapreduce.jobhistory.address", historyAddress);
}
String schedulerAddress = String schedulerAddress =
jobConf.get("yarn.resourcemanager.scheduler.address"); jobConf.get("yarn.resourcemanager.scheduler.address");
if (schedulerAddress != null) { if (schedulerAddress != null) {