From 9ad708a0dfa5e82d1a17471b1cf3e76204b32cbc Mon Sep 17 00:00:00 2001 From: Sangjin Lee Date: Wed, 11 Nov 2015 15:37:24 -0800 Subject: [PATCH] MAPREDUCE-6540. TestMRTimelineEventHandling fails (sjlee) --- hadoop-mapreduce-project/CHANGES.txt | 2 ++ .../hadoop/mapred/TestMRTimelineEventHandling.java | 10 ++++++++++ 2 files changed, 12 insertions(+) diff --git a/hadoop-mapreduce-project/CHANGES.txt b/hadoop-mapreduce-project/CHANGES.txt index b6dc93edc3..09a549d7b7 100644 --- a/hadoop-mapreduce-project/CHANGES.txt +++ b/hadoop-mapreduce-project/CHANGES.txt @@ -226,6 +226,8 @@ Trunk (Unreleased) MAPREDUCE-6435. MapReduce client assumes the world is x86 (Alan Burlison via aw) + MAPREDUCE-6540. TestMRTimelineEventHandling fails (sjlee) + BREAKDOWN OF MAPREDUCE-2841 (NATIVE TASK) SUBTASKS MAPREDUCE-5985. native-task: Fix build on macosx. Contributed by diff --git a/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-jobclient/src/test/java/org/apache/hadoop/mapred/TestMRTimelineEventHandling.java b/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-jobclient/src/test/java/org/apache/hadoop/mapred/TestMRTimelineEventHandling.java index eab9026c82..a82007f97c 100644 --- a/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-jobclient/src/test/java/org/apache/hadoop/mapred/TestMRTimelineEventHandling.java +++ b/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-jobclient/src/test/java/org/apache/hadoop/mapred/TestMRTimelineEventHandling.java @@ -27,6 +27,7 @@ import org.apache.hadoop.yarn.api.records.timeline.TimelineEntities; import org.apache.hadoop.yarn.api.records.timeline.TimelineEntity; import org.apache.hadoop.yarn.conf.YarnConfiguration; +import org.apache.hadoop.yarn.server.MiniYARNCluster; import org.apache.hadoop.yarn.server.timeline.TimelineStore; import org.junit.Assert; @@ -91,6 +92,9 @@ public void testMRTimelineEventHandling() throws Exception { TestJobHistoryEventHandler.class.getSimpleName(), 1); cluster.init(conf); cluster.start(); + conf.set(YarnConfiguration.TIMELINE_SERVICE_WEBAPP_ADDRESS, + MiniYARNCluster.getHostname() + ":" + + cluster.getApplicationHistoryServer().getPort()); TimelineStore ts = cluster.getApplicationHistoryServer() .getTimelineStore(); @@ -145,6 +149,9 @@ public void testMapreduceJobTimelineServiceEnabled() TestJobHistoryEventHandler.class.getSimpleName(), 1); cluster.init(conf); cluster.start(); + conf.set(YarnConfiguration.TIMELINE_SERVICE_WEBAPP_ADDRESS, + MiniYARNCluster.getHostname() + ":" + + cluster.getApplicationHistoryServer().getPort()); TimelineStore ts = cluster.getApplicationHistoryServer() .getTimelineStore(); @@ -182,6 +189,9 @@ public void testMapreduceJobTimelineServiceEnabled() TestJobHistoryEventHandler.class.getSimpleName(), 1); cluster.init(conf); cluster.start(); + conf.set(YarnConfiguration.TIMELINE_SERVICE_WEBAPP_ADDRESS, + MiniYARNCluster.getHostname() + ":" + + cluster.getApplicationHistoryServer().getPort()); TimelineStore ts = cluster.getApplicationHistoryServer() .getTimelineStore();