Class StartContainerRequest
java.lang.Object
org.apache.hadoop.yarn.api.protocolrecords.StartContainerRequest
The request sent by the ApplicationMaster to the
NodeManager to start a container.
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.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract ContainerLaunchContextGet theContainerLaunchContextfor the container to be started by theNodeManager.abstract TokenGet the container token to be used for authorization during starting container.static StartContainerRequestnewInstance(ContainerLaunchContext context, Token container) abstract voidSet theContainerLaunchContextfor the container to be started by theNodeManagerabstract voidsetContainerToken(Token container)
-
Constructor Details
-
StartContainerRequest
public StartContainerRequest()
-
-
Method Details
-
newInstance
@Public @Stable public static StartContainerRequest newInstance(ContainerLaunchContext context, Token container) -
getContainerLaunchContext
Get theContainerLaunchContextfor the container to be started by theNodeManager.- Returns:
ContainerLaunchContextfor the container to be started by theNodeManager
-
setContainerLaunchContext
Set theContainerLaunchContextfor the container to be started by theNodeManager- Parameters:
context-ContainerLaunchContextfor the container to be started by theNodeManager
-
getContainerToken
Get the container token to be used for authorization during starting container.Note:
NMTokenwill be used for authenticating communication withNodeManager.- Returns:
- the container token to be used for authorization during starting container.
- See Also:
-
setContainerToken
-