The ApplicationMaster
requests a NodeManager
to stop a {@link Container} allocated to it using this interface.
The ApplicationMaster
sends a {@link StopContainerRequest} which includes the {@link ContainerId} of thecontainer to be stopped.
Currently the NodeManager
sends an immediate, empty response via {@link StopContainerResponse} to signify acceptance of therequest and throws an exception in case of errors. The ApplicationMaster
can use {@link #getContainerStatus(GetContainerStatusRequest)} to get updated status of the container.
@param request request to stop a container
@return empty response to indicate acceptance of the request or an exception
@throws YarnRemoteException