Class AMLauncher
java.lang.Object
org.apache.hadoop.yarn.server.resourcemanager.amlauncher.AMLauncher
- All Implemented Interfaces:
Runnable
The launch of the AM itself.
-
Constructor Summary
ConstructorsConstructorDescriptionAMLauncher(RMContext rmContext, RMAppAttempt application, AMLauncherEventType eventType, org.apache.hadoop.conf.Configuration conf) -
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.hadoop.security.token.Token<org.apache.hadoop.yarn.security.AMRMTokenIdentifier>protected org.apache.hadoop.yarn.api.ContainerManagementProtocolgetContainerMgrProxy(org.apache.hadoop.yarn.api.records.ContainerId containerId) protected org.apache.hadoop.yarn.ipc.YarnRPCprotected voidonAMLaunchFailed(org.apache.hadoop.yarn.api.records.ContainerId containerId, Exception ie) voidrun()protected voidsetupTokens(org.apache.hadoop.yarn.api.records.ContainerLaunchContext container, org.apache.hadoop.yarn.api.records.ContainerId containerID)
-
Constructor Details
-
AMLauncher
public AMLauncher(RMContext rmContext, RMAppAttempt application, AMLauncherEventType eventType, org.apache.hadoop.conf.Configuration conf)
-
-
Method Details
-
getContainerMgrProxy
protected org.apache.hadoop.yarn.api.ContainerManagementProtocol getContainerMgrProxy(org.apache.hadoop.yarn.api.records.ContainerId containerId) -
getYarnRPC
@VisibleForTesting protected org.apache.hadoop.yarn.ipc.YarnRPC getYarnRPC() -
setupTokens
@Private @VisibleForTesting protected void setupTokens(org.apache.hadoop.yarn.api.records.ContainerLaunchContext container, org.apache.hadoop.yarn.api.records.ContainerId containerID) throws IOException - Throws:
IOException
-
createAndSetAMRMToken
@VisibleForTesting protected org.apache.hadoop.security.token.Token<org.apache.hadoop.yarn.security.AMRMTokenIdentifier> createAndSetAMRMToken() -
run
public void run() -
onAMLaunchFailed
protected void onAMLaunchFailed(org.apache.hadoop.yarn.api.records.ContainerId containerId, Exception ie)
-