|
@@ -446,9 +446,6 @@ public class TestJobHistoryEventHandler {
|
|
TestParams t = new TestParams(false);
|
|
TestParams t = new TestParams(false);
|
|
Configuration conf = new YarnConfiguration();
|
|
Configuration conf = new YarnConfiguration();
|
|
conf.setBoolean(YarnConfiguration.TIMELINE_SERVICE_ENABLED, true);
|
|
conf.setBoolean(YarnConfiguration.TIMELINE_SERVICE_ENABLED, true);
|
|
- conf.setBoolean(MRJobConfig.MAPREDUCE_JOB_EMIT_TIMELINE_DATA, true);
|
|
|
|
- JHEvenHandlerForTest jheh = new JHEvenHandlerForTest(t.mockAppContext, 0);
|
|
|
|
- jheh.init(conf);
|
|
|
|
MiniYARNCluster yarnCluster = null;
|
|
MiniYARNCluster yarnCluster = null;
|
|
long currentTime = System.currentTimeMillis();
|
|
long currentTime = System.currentTimeMillis();
|
|
try {
|
|
try {
|
|
@@ -456,6 +453,13 @@ public class TestJobHistoryEventHandler {
|
|
TestJobHistoryEventHandler.class.getSimpleName(), 1, 1, 1, 1);
|
|
TestJobHistoryEventHandler.class.getSimpleName(), 1, 1, 1, 1);
|
|
yarnCluster.init(conf);
|
|
yarnCluster.init(conf);
|
|
yarnCluster.start();
|
|
yarnCluster.start();
|
|
|
|
+ Configuration confJHEH = new YarnConfiguration(conf);
|
|
|
|
+ confJHEH.setBoolean(MRJobConfig.MAPREDUCE_JOB_EMIT_TIMELINE_DATA, true);
|
|
|
|
+ confJHEH.set(YarnConfiguration.TIMELINE_SERVICE_WEBAPP_ADDRESS,
|
|
|
|
+ MiniYARNCluster.getHostname() + ":" +
|
|
|
|
+ yarnCluster.getApplicationHistoryServer().getPort());
|
|
|
|
+ JHEvenHandlerForTest jheh = new JHEvenHandlerForTest(t.mockAppContext, 0);
|
|
|
|
+ jheh.init(confJHEH);
|
|
jheh.start();
|
|
jheh.start();
|
|
TimelineStore ts = yarnCluster.getApplicationHistoryServer()
|
|
TimelineStore ts = yarnCluster.getApplicationHistoryServer()
|
|
.getTimelineStore();
|
|
.getTimelineStore();
|