YARN-3085. Application summary should include the application type. Contributed by Rohith
(cherry picked from commit a761bf8726
)
This commit is contained in:
parent
7cb70d3447
commit
3828fb5fab
|
@ -191,6 +191,9 @@ Release 2.7.0 - UNRELEASED
|
||||||
YARN-2808. Made YARN CLI list attempt’s finished containers of a running
|
YARN-2808. Made YARN CLI list attempt’s finished containers of a running
|
||||||
application. (Naganarasimha G R via zjshen)
|
application. (Naganarasimha G R via zjshen)
|
||||||
|
|
||||||
|
YARN-3085. Application summary should include the application type (Rohith
|
||||||
|
via jlowe)
|
||||||
|
|
||||||
OPTIMIZATIONS
|
OPTIMIZATIONS
|
||||||
|
|
||||||
BUG FIXES
|
BUG FIXES
|
||||||
|
|
|
@ -172,7 +172,8 @@ public class RMAppManager implements EventHandler<RMAppManagerEvent>,
|
||||||
.add("vcoreSeconds", metrics.getVcoreSeconds())
|
.add("vcoreSeconds", metrics.getVcoreSeconds())
|
||||||
.add("preemptedAMContainers", metrics.getNumAMContainersPreempted())
|
.add("preemptedAMContainers", metrics.getNumAMContainersPreempted())
|
||||||
.add("preemptedNonAMContainers", metrics.getNumNonAMContainersPreempted())
|
.add("preemptedNonAMContainers", metrics.getNumNonAMContainersPreempted())
|
||||||
.add("preemptedResources", metrics.getResourcePreempted());
|
.add("preemptedResources", metrics.getResourcePreempted())
|
||||||
|
.add("applicationType", app.getApplicationType());
|
||||||
return summary;
|
return summary;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -572,7 +572,7 @@ public class TestAppManager{
|
||||||
when(app.getUser()).thenReturn("Multiline\n\n\r\rUserName");
|
when(app.getUser()).thenReturn("Multiline\n\n\r\rUserName");
|
||||||
when(app.getQueue()).thenReturn("Multiline\n\n\r\rQueueName");
|
when(app.getQueue()).thenReturn("Multiline\n\n\r\rQueueName");
|
||||||
when(app.getState()).thenReturn(RMAppState.RUNNING);
|
when(app.getState()).thenReturn(RMAppState.RUNNING);
|
||||||
|
when(app.getApplicationType()).thenReturn("MAPREDUCE");
|
||||||
RMAppMetrics metrics =
|
RMAppMetrics metrics =
|
||||||
new RMAppMetrics(Resource.newInstance(1234, 56), 10, 1, 16384, 64);
|
new RMAppMetrics(Resource.newInstance(1234, 56), 10, 1, 16384, 64);
|
||||||
when(app.getRMAppMetrics()).thenReturn(metrics);
|
when(app.getRMAppMetrics()).thenReturn(metrics);
|
||||||
|
@ -593,6 +593,7 @@ public class TestAppManager{
|
||||||
Assert.assertTrue(msg.contains("preemptedAMContainers=1"));
|
Assert.assertTrue(msg.contains("preemptedAMContainers=1"));
|
||||||
Assert.assertTrue(msg.contains("preemptedNonAMContainers=10"));
|
Assert.assertTrue(msg.contains("preemptedNonAMContainers=10"));
|
||||||
Assert.assertTrue(msg.contains("preemptedResources=<memory:1234\\, vCores:56>"));
|
Assert.assertTrue(msg.contains("preemptedResources=<memory:1234\\, vCores:56>"));
|
||||||
|
Assert.assertTrue(msg.contains("applicationType=MAPREDUCE"));
|
||||||
}
|
}
|
||||||
|
|
||||||
private static ResourceScheduler mockResourceScheduler() {
|
private static ResourceScheduler mockResourceScheduler() {
|
||||||
|
|
Loading…
Reference in New Issue