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

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

Introduction

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

Prototype

RMContainerEventType RELEASED

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

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) {//from   w  w w.  jav a 2 s  .  com
    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);
    }
}