@Override public void dropContainerReservation(RMContainer container) { if(LOG.isDebugEnabled()){ LOG.debug("DROP_RESERVATION:" + container.toString()); } completedContainer(container, SchedulerUtils.createAbnormalContainerStatus( container.getContainerId(), SchedulerUtils.UNRESERVED_CONTAINER), RMContainerEventType.KILL); }
@Override public void dropContainerReservation(RMContainer container) { if(LOG.isDebugEnabled()){ LOG.debug("DROP_RESERVATION:" + container.toString()); } completedContainer(container, SchedulerUtils.createAbnormalContainerStatus( container.getContainerId(), SchedulerUtils.UNRESERVED_CONTAINER), RMContainerEventType.KILL); }
@Override public void killContainer(RMContainer cont) { if (LOG.isDebugEnabled()) { LOG.debug("KILL_CONTAINER: container" + cont.toString()); } completedContainer(cont, SchedulerUtils.createPreemptedContainerStatus( cont.getContainerId(), SchedulerUtils.PREEMPTED_CONTAINER), RMContainerEventType.KILL); }
@Override public void killContainer(RMContainer cont) { if (LOG.isDebugEnabled()) { LOG.debug("KILL_CONTAINER: container" + cont.toString()); } completedContainer(cont, SchedulerUtils.createPreemptedContainerStatus( cont.getContainerId(), SchedulerUtils.PREEMPTED_CONTAINER), RMContainerEventType.KILL); }
ContainerId containerId = completedContainer.getContainerId(); LOG.debug("Container FINISHED: " + containerId); completedContainer(getRMContainer(containerId), completedContainer, RMContainerEventType.FINISHED);
ContainerId containerId = completedContainer.getContainerId(); LOG.debug("Container FINISHED: " + containerId); completedContainer(getRMContainer(containerId), completedContainer, RMContainerEventType.FINISHED);
completedContainer(rmContainer, ContainerStatus.newInstance(containerId, ContainerState.COMPLETE,
completedContainer(rmContainer, ContainerStatus.newInstance(containerId, ContainerState.COMPLETE,
continue; completedContainer( rmContainer, SchedulerUtils.createAbnormalContainerStatus( completedContainer( rmContainer, SchedulerUtils.createAbnormalContainerStatus(
continue; completedContainer( rmContainer, SchedulerUtils.createAbnormalContainerStatus( completedContainer( rmContainer, SchedulerUtils.createAbnormalContainerStatus(
completedContainer(container, SchedulerUtils.createAbnormalContainerStatus( container.getContainerId(), completedContainer(reservedContainer, SchedulerUtils.createAbnormalContainerStatus( reservedContainer.getContainerId(),
completedContainer(container, SchedulerUtils.createAbnormalContainerStatus( container.getContainerId(), completedContainer(reservedContainer, SchedulerUtils.createAbnormalContainerStatus( reservedContainer.getContainerId(),
cs.completedContainer(killableContainer, ContainerStatus .newInstance(killableContainer.getContainerId(), ContainerState.COMPLETE, "",
cs.completedContainer(rmContainer, ContainerStatus .newInstance(rmContainer.getContainerId(), ContainerState.COMPLETE, "",
(ContainerExpiredSchedulerEvent) event; ContainerId containerId = containerExpiredEvent.getContainerId(); completedContainer(getRMContainer(containerId), SchedulerUtils.createAbnormalContainerStatus( containerId,
(ContainerExpiredSchedulerEvent) event; ContainerId containerId = containerExpiredEvent.getContainerId(); completedContainer(getRMContainer(containerId), SchedulerUtils.createAbnormalContainerStatus( containerId,
rollbackContainerUpdate(containerId); } else { completedContainer(getRMContainer(containerId), SchedulerUtils.createAbnormalContainerStatus( containerId, completedContainer(container, SchedulerUtils.createAbnormalContainerStatus( container.getContainerId(),
ContainerId containerId = ContainerId.newContainerId( am2.getApplicationAttemptId(), 1); cs.completedContainer(cs.getRMContainer(containerId), ContainerStatus .newInstance(containerId, ContainerState.COMPLETE, "", 0), RMContainerEventType.FINISHED);
ContainerId containerId = ContainerId.newContainerId( am2.getApplicationAttemptId(), 1); cs.completedContainer(cs.getRMContainer(containerId), ContainerStatus .newInstance(containerId, ContainerState.COMPLETE, "", 0), RMContainerEventType.FINISHED);
cs.completedContainer(cs.getRMContainer(containerId2), ContainerStatus.newInstance(containerId2, ContainerState.COMPLETE, "", ContainerExitStatus.KILLED_BY_RESOURCEMANAGER), RMContainerEventType.KILL); cs.completedContainer(cs.getRMContainer(containerId1), ContainerStatus.newInstance(containerId1, ContainerState.COMPLETE, "", ContainerExitStatus.KILLED_BY_RESOURCEMANAGER),