Class YARNRunner

java.lang.Object
org.apache.hadoop.mapred.YARNRunner
All Implemented Interfaces:
org.apache.hadoop.ipc.VersionedProtocol, org.apache.hadoop.mapreduce.protocol.ClientProtocol

public class YARNRunner extends Object implements org.apache.hadoop.mapreduce.protocol.ClientProtocol
This class enables the current JobClient (0.22 hadoop) to run on YARN.
  • Field Details

    • AM_CONTAINER_PRIORITY

      public static final org.apache.hadoop.yarn.api.records.Priority AM_CONTAINER_PRIORITY
  • Constructor Details

    • YARNRunner

      public YARNRunner(org.apache.hadoop.conf.Configuration conf)
      Yarn runner incapsulates the client interface of yarn
      Parameters:
      conf - the configuration object for the client
    • YARNRunner

      public YARNRunner(org.apache.hadoop.conf.Configuration conf, ResourceMgrDelegate resMgrDelegate)
      Similar to YARNRunner(Configuration) but allowing injecting ResourceMgrDelegate. Enables mocking and testing.
      Parameters:
      conf - the configuration object for the client
      resMgrDelegate - the resourcemanager client handle.
    • YARNRunner

      public YARNRunner(org.apache.hadoop.conf.Configuration conf, ResourceMgrDelegate resMgrDelegate, ClientCache clientCache)
      Similar to YARNRunner(Configuration, ResourceMgrDelegate) but allowing injecting ClientCache. Enable mocking and testing.
      Parameters:
      conf - the configuration object
      resMgrDelegate - the resource manager delegate
      clientCache - the client cache object.
  • Method Details