YARN-7476. Fix miscellaneous issues in ATSv2 after merge to branch-2. (Varun Saxena via Subru).
(cherry picked from commit 0282efab14
)
This commit is contained in:
parent
8251601003
commit
8bcd1d62c8
|
@ -118,9 +118,9 @@ message NodeHeartbeatResponseProto {
|
||||||
repeated SignalContainerRequestProto containers_to_signal = 13;
|
repeated SignalContainerRequestProto containers_to_signal = 13;
|
||||||
optional ResourceProto resource = 14;
|
optional ResourceProto resource = 14;
|
||||||
optional ContainerQueuingLimitProto container_queuing_limit = 15;
|
optional ContainerQueuingLimitProto container_queuing_limit = 15;
|
||||||
|
repeated AppCollectorDataProto app_collectors = 16;
|
||||||
// to be used in place of containers_to_decrease
|
// to be used in place of containers_to_decrease
|
||||||
repeated ContainerProto containers_to_update = 17;
|
repeated ContainerProto containers_to_update = 17;
|
||||||
repeated AppCollectorDataProto app_collectors = 18;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
message ContainerQueuingLimitProto {
|
message ContainerQueuingLimitProto {
|
||||||
|
|
|
@ -187,7 +187,7 @@ public class NMTimelinePublisher extends CompositeService {
|
||||||
|
|
||||||
Map<String, Object> entityInfo = new HashMap<String, Object>();
|
Map<String, Object> entityInfo = new HashMap<String, Object>();
|
||||||
entityInfo.put(ContainerMetricsConstants.ALLOCATED_MEMORY_INFO,
|
entityInfo.put(ContainerMetricsConstants.ALLOCATED_MEMORY_INFO,
|
||||||
resource.getMemory());
|
resource.getMemorySize());
|
||||||
entityInfo.put(ContainerMetricsConstants.ALLOCATED_VCORE_INFO,
|
entityInfo.put(ContainerMetricsConstants.ALLOCATED_VCORE_INFO,
|
||||||
resource.getVirtualCores());
|
resource.getVirtualCores());
|
||||||
entityInfo.put(ContainerMetricsConstants.ALLOCATED_HOST_INFO,
|
entityInfo.put(ContainerMetricsConstants.ALLOCATED_HOST_INFO,
|
||||||
|
|
|
@ -164,7 +164,7 @@ public class TimelineServiceV1Publisher extends AbstractSystemMetricsPublisher {
|
||||||
eventInfo.put(ApplicationMetricsConstants.QUEUE_ENTITY_INFO,
|
eventInfo.put(ApplicationMetricsConstants.QUEUE_ENTITY_INFO,
|
||||||
app.getQueue());
|
app.getQueue());
|
||||||
eventInfo.put(ApplicationMetricsConstants.APPLICATION_PRIORITY_INFO,
|
eventInfo.put(ApplicationMetricsConstants.APPLICATION_PRIORITY_INFO,
|
||||||
app.getApplicationSubmissionContext().getPriority().getPriority());
|
app.getApplicationPriority().getPriority());
|
||||||
TimelineEvent tEvent = new TimelineEvent();
|
TimelineEvent tEvent = new TimelineEvent();
|
||||||
tEvent.setEventType(ApplicationMetricsConstants.UPDATED_EVENT_TYPE);
|
tEvent.setEventType(ApplicationMetricsConstants.UPDATED_EVENT_TYPE);
|
||||||
tEvent.setTimestamp(updatedTime);
|
tEvent.setTimestamp(updatedTime);
|
||||||
|
|
|
@ -274,7 +274,7 @@ public class TimelineServiceV2Publisher extends AbstractSystemMetricsPublisher {
|
||||||
eventInfo.put(ApplicationMetricsConstants.QUEUE_ENTITY_INFO,
|
eventInfo.put(ApplicationMetricsConstants.QUEUE_ENTITY_INFO,
|
||||||
app.getQueue());
|
app.getQueue());
|
||||||
eventInfo.put(ApplicationMetricsConstants.APPLICATION_PRIORITY_INFO,
|
eventInfo.put(ApplicationMetricsConstants.APPLICATION_PRIORITY_INFO,
|
||||||
app.getApplicationSubmissionContext().getPriority().getPriority());
|
app.getApplicationPriority().getPriority());
|
||||||
TimelineEvent tEvent = new TimelineEvent();
|
TimelineEvent tEvent = new TimelineEvent();
|
||||||
tEvent.setId(ApplicationMetricsConstants.UPDATED_EVENT_TYPE);
|
tEvent.setId(ApplicationMetricsConstants.UPDATED_EVENT_TYPE);
|
||||||
tEvent.setTimestamp(currentTimeMillis);
|
tEvent.setTimestamp(currentTimeMillis);
|
||||||
|
|
Loading…
Reference in New Issue