Example usage for org.apache.hadoop.yarn.server.resourcemanager.rmcontainer RMContainerEventType KILL

List of usage examples for org.apache.hadoop.yarn.server.resourcemanager.rmcontainer RMContainerEventType KILL

Introduction

In this page you can find the example usage for org.apache.hadoop.yarn.server.resourcemanager.rmcontainer RMContainerEventType KILL.

Prototype

RMContainerEventType KILL

To view the source code for org.apache.hadoop.yarn.server.resourcemanager.rmcontainer RMContainerEventType KILL.

Click Source Link

Usage

From source file:org.apache.myriad.scheduler.fgs.YarnNodeCapacityManager.java

License:Apache License

@Override
public void beforeCompletedContainer(RMContainer rmContainer, ContainerStatus containerStatus,
        RMContainerEventType type) {// w w  w .  j  a  v a2  s  . co m
    if (type.equals(RMContainerEventType.KILL) || type.equals(RMContainerEventType.RELEASED)) {
        LOGGER.info("{} completed with exit status {}, killing cooresponding mesos task.",
                rmContainer.getContainerId().toString(), type);
        removeYarnTask(rmContainer);
    }
}