From 561c746cbe2855a5d19aec38267486b2ddceb3eb Mon Sep 17 00:00:00 2001 From: Zhijie Shen Date: Fri, 22 May 2015 00:00:05 -0700 Subject: [PATCH] MAPREDUCE-6370. Made the timeline service v2 test driver write event ID. Contributed by Li Lu. (cherry picked from commit 827633ee9fee26e3e15343cbccb0b7905ae02170) --- .../test/java/org/apache/hadoop/mapred/SimpleEntityWriter.java | 1 + 1 file changed, 1 insertion(+) diff --git a/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-jobclient/src/test/java/org/apache/hadoop/mapred/SimpleEntityWriter.java b/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-jobclient/src/test/java/org/apache/hadoop/mapred/SimpleEntityWriter.java index 4ef0a14bfea..625c32ae606 100644 --- a/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-jobclient/src/test/java/org/apache/hadoop/mapred/SimpleEntityWriter.java +++ b/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-jobclient/src/test/java/org/apache/hadoop/mapred/SimpleEntityWriter.java @@ -97,6 +97,7 @@ class SimpleEntityWriter extends EntityWriter { entity.addInfo("PERF_TEST", payLoad); // add an event TimelineEvent event = new TimelineEvent(); + event.setId("foo_event_id"); event.setTimestamp(System.currentTimeMillis()); event.addInfo("foo_event", "test"); entity.addEvent(event);