Search in sources :

Example 6 with ContainerEntity

use of org.apache.hadoop.yarn.api.records.timelineservice.ContainerEntity in project hadoop by apache.

the class TimelineServiceV2Publisher method createContainerEntity.

private static ContainerEntity createContainerEntity(ContainerId containerId) {
    ContainerEntity entity = new ContainerEntity();
    entity.setId(containerId.toString());
    entity.setParent(new Identifier(TimelineEntityType.YARN_APPLICATION_ATTEMPT.name(), containerId.getApplicationAttemptId().toString()));
    return entity;
}
Also used : Identifier(org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntity.Identifier) ContainerEntity(org.apache.hadoop.yarn.api.records.timelineservice.ContainerEntity)

Aggregations

ContainerEntity (org.apache.hadoop.yarn.api.records.timelineservice.ContainerEntity)6 HashMap (java.util.HashMap)2 ApplicationId (org.apache.hadoop.yarn.api.records.ApplicationId)2 ContainerId (org.apache.hadoop.yarn.api.records.ContainerId)2 ApplicationAttemptEntity (org.apache.hadoop.yarn.api.records.timelineservice.ApplicationAttemptEntity)2 Identifier (org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntity.Identifier)2 TimelineEvent (org.apache.hadoop.yarn.api.records.timelineservice.TimelineEvent)2 TimelineMetric (org.apache.hadoop.yarn.api.records.timelineservice.TimelineMetric)2 TimelineV2Client (org.apache.hadoop.yarn.client.api.TimelineV2Client)2 File (java.io.File)1 IOException (java.io.IOException)1 HashSet (java.util.HashSet)1 ConcurrentHashMap (java.util.concurrent.ConcurrentHashMap)1 ApplicationAttemptId (org.apache.hadoop.yarn.api.records.ApplicationAttemptId)1 Resource (org.apache.hadoop.yarn.api.records.Resource)1 ApplicationEntity (org.apache.hadoop.yarn.api.records.timelineservice.ApplicationEntity)1 ClusterEntity (org.apache.hadoop.yarn.api.records.timelineservice.ClusterEntity)1 FlowRunEntity (org.apache.hadoop.yarn.api.records.timelineservice.FlowRunEntity)1 QueueEntity (org.apache.hadoop.yarn.api.records.timelineservice.QueueEntity)1 TimelineEntity (org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntity)1