org.apache.hadoop.yarn.api
Interface ContainerManager

The protocol between an ApplicationMaster and a
NodeManager to start/stop containers and to get status
of running containers.

If security is enabled the NodeManager verifies that the
ApplicationMaster has truly been allocated the container
by the ResourceManager and also verifies all interactions such
as stopping the container or obtaining status information for the container.

startContainer

The ApplicationMaster requests a NodeManager
to start a Container allocated to it using this interface.

The ApplicationMaster has to provide details such as
allocated resource capability, security tokens (if enabled), command
to be executed to start the container, environment for the process,
necessary binaries/jar/shared-objects etc. via the
ContainerLaunchContext in the StartContainerRequest.