|
@@ -24,6 +24,8 @@ import org.apache.hadoop.yarn.api.records.ApplicationId;
|
|
|
import org.apache.hadoop.yarn.conf.YarnConfiguration;
|
|
|
import org.apache.hadoop.yarn.server.api.records.AppCollectorData;
|
|
|
import org.apache.hadoop.yarn.server.resourcemanager.rmapp.RMApp;
|
|
|
+import org.apache.hadoop.yarn.server.timelineservice.storage.FileSystemTimelineWriterImpl;
|
|
|
+import org.apache.hadoop.yarn.server.timelineservice.storage.TimelineWriter;
|
|
|
import org.junit.Before;
|
|
|
import org.junit.Test;
|
|
|
|
|
@@ -47,8 +49,12 @@ public class TestRMHATimelineCollectors extends RMHATestBase {
|
|
|
super.setup();
|
|
|
confForRM1.setBoolean(YarnConfiguration.TIMELINE_SERVICE_ENABLED, true);
|
|
|
confForRM2.setBoolean(YarnConfiguration.TIMELINE_SERVICE_ENABLED, true);
|
|
|
+ confForRM1.setClass(YarnConfiguration.TIMELINE_SERVICE_WRITER_CLASS,
|
|
|
+ FileSystemTimelineWriterImpl.class, TimelineWriter.class);
|
|
|
confForRM1.setFloat(YarnConfiguration.TIMELINE_SERVICE_VERSION, 2.0f);
|
|
|
confForRM2.setFloat(YarnConfiguration.TIMELINE_SERVICE_VERSION, 2.0f);
|
|
|
+ confForRM2.setClass(YarnConfiguration.TIMELINE_SERVICE_WRITER_CLASS,
|
|
|
+ FileSystemTimelineWriterImpl.class, TimelineWriter.class);
|
|
|
}
|
|
|
|
|
|
@Test
|