|
@@ -64,29 +64,26 @@ import org.apache.hadoop.yarn.api.records.FinalApplicationStatus;
|
|
|
import org.apache.hadoop.yarn.api.records.YarnApplicationState;
|
|
|
import org.apache.hadoop.yarn.api.records.timeline.TimelineDomain;
|
|
|
import org.apache.hadoop.yarn.api.records.timeline.TimelineEntities;
|
|
|
-import org.apache.hadoop.yarn.applications.distributedshell.ApplicationMaster;
|
|
|
+import org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntityType;
|
|
|
+import org.apache.hadoop.yarn.client.api.YarnClient;
|
|
|
import org.apache.hadoop.yarn.client.api.impl.DirectTimelineWriter;
|
|
|
+import org.apache.hadoop.yarn.client.api.impl.TestTimelineClient;
|
|
|
import org.apache.hadoop.yarn.client.api.impl.TimelineClientImpl;
|
|
|
import org.apache.hadoop.yarn.client.api.impl.TimelineWriter;
|
|
|
-import org.apache.hadoop.yarn.client.api.impl.TestTimelineClient;
|
|
|
-import org.apache.hadoop.yarn.client.api.TimelineClient;
|
|
|
-import org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntityType;
|
|
|
-import org.apache.hadoop.yarn.client.api.YarnClient;
|
|
|
-
|
|
|
import org.apache.hadoop.yarn.conf.YarnConfiguration;
|
|
|
import org.apache.hadoop.yarn.server.MiniYARNCluster;
|
|
|
import org.apache.hadoop.yarn.server.metrics.AppAttemptMetricsConstants;
|
|
|
import org.apache.hadoop.yarn.server.metrics.ApplicationMetricsConstants;
|
|
|
import org.apache.hadoop.yarn.server.metrics.ContainerMetricsConstants;
|
|
|
import org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.CapacityScheduler;
|
|
|
-import org.apache.hadoop.yarn.server.timeline.PluginStoreTestUtils;
|
|
|
import org.apache.hadoop.yarn.server.timeline.NameValuePair;
|
|
|
+import org.apache.hadoop.yarn.server.timeline.PluginStoreTestUtils;
|
|
|
import org.apache.hadoop.yarn.server.timeline.TimelineVersion;
|
|
|
import org.apache.hadoop.yarn.server.timeline.TimelineVersionWatcher;
|
|
|
-import org.apache.hadoop.yarn.server.utils.BuilderUtils;
|
|
|
-import org.apache.hadoop.yarn.util.ConverterUtils;
|
|
|
import org.apache.hadoop.yarn.server.timelineservice.collector.PerNodeTimelineCollectorsAuxService;
|
|
|
import org.apache.hadoop.yarn.server.timelineservice.storage.FileSystemTimelineWriterImpl;
|
|
|
+import org.apache.hadoop.yarn.server.utils.BuilderUtils;
|
|
|
+import org.apache.hadoop.yarn.util.ConverterUtils;
|
|
|
import org.apache.hadoop.yarn.util.LinuxResourceCalculatorPlugin;
|
|
|
import org.apache.hadoop.yarn.util.ProcfsBasedProcessTree;
|
|
|
import org.apache.hadoop.yarn.util.timeline.TimelineUtils;
|
|
@@ -185,6 +182,9 @@ public class TestDistributedShell {
|
|
|
conf.set(YarnConfiguration.NM_AUX_SERVICES, TIMELINE_AUX_SERVICE_NAME);
|
|
|
conf.set(YarnConfiguration.NM_AUX_SERVICES + "." + TIMELINE_AUX_SERVICE_NAME
|
|
|
+ ".class", PerNodeTimelineCollectorsAuxService.class.getName());
|
|
|
+ conf.setClass(YarnConfiguration.TIMELINE_SERVICE_WRITER_CLASS,
|
|
|
+ FileSystemTimelineWriterImpl.class,
|
|
|
+ org.apache.hadoop.yarn.server.timelineservice.storage.TimelineWriter.class);
|
|
|
} else {
|
|
|
Assert.fail("Wrong timeline version number: " + timelineVersion);
|
|
|
}
|