java.lang.Object
org.apache.hadoop.yarn.server.resourcemanager.amlauncher.AMLauncher
All Implemented Interfaces:
Runnable

public class AMLauncher extends Object implements Runnable
The launch of the AM itself.
  • Constructor Details

  • 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()
      Specified by:
      run in interface Runnable
    • onAMLaunchFailed

      protected void onAMLaunchFailed(org.apache.hadoop.yarn.api.records.ContainerId containerId, Exception ie)