IOException,
YarnException {
String containerID = request.getId();
log.info("Kill Container {}", containerID);
//throws NoSuchNodeException if it is missing
RoleInstance instance =
appState.getLiveInstanceByContainerID(containerID);
List<AbstractRMOperation> opsList =
new LinkedList<>();
ContainerReleaseOperation release =
new ContainerReleaseOperation(instance.getId());
opsList.add(release);
//now apply the operations
rmOperationHandler.execute(opsList);
Messages.KillContainerResponseProto.Builder builder =
Messages.KillContainerResponseProto.newBuilder();