public class YARNRunner extends Object implements org.apache.hadoop.mapreduce.protocol.ClientProtocol
| Modifier and Type | Field and Description |
|---|---|
static org.apache.hadoop.yarn.api.records.Priority |
AM_CONTAINER_PRIORITY |
versionID| Constructor and Description |
|---|
YARNRunner(Configuration conf)
Yarn runner incapsulates the client interface of
yarn
|
YARNRunner(Configuration conf,
ResourceMgrDelegate resMgrDelegate)
Similar to
YARNRunner(Configuration) but allowing injecting
ResourceMgrDelegate. |
YARNRunner(Configuration conf,
ResourceMgrDelegate resMgrDelegate,
ClientCache clientCache)
Similar to
YARNRunner(Configuration, ResourceMgrDelegate)
but allowing injecting ClientCache. |
public static final org.apache.hadoop.yarn.api.records.Priority AM_CONTAINER_PRIORITY
public YARNRunner(Configuration conf)
conf - the configuration object for the clientpublic YARNRunner(Configuration conf, ResourceMgrDelegate resMgrDelegate)
YARNRunner(Configuration) but allowing injecting
ResourceMgrDelegate. Enables mocking and testing.conf - the configuration object for the clientresMgrDelegate - the resourcemanager client handle.public YARNRunner(Configuration conf, ResourceMgrDelegate resMgrDelegate, ClientCache clientCache)
YARNRunner(Configuration, ResourceMgrDelegate)
but allowing injecting ClientCache. Enable mocking and testing.conf - the configuration objectresMgrDelegate - the resource manager delegateclientCache - the client cache object.@InterfaceAudience.Private public void setResourceMgrDelegate(ResourceMgrDelegate resMgrDelegate)
public void cancelDelegationToken(org.apache.hadoop.security.token.Token<org.apache.hadoop.mapreduce.security.token.delegation.DelegationTokenIdentifier> arg0) throws IOException, InterruptedException
cancelDelegationToken in interface org.apache.hadoop.mapreduce.protocol.ClientProtocolIOExceptionInterruptedExceptionpublic TaskTrackerInfo[] getActiveTrackers() throws IOException, InterruptedException
getActiveTrackers in interface org.apache.hadoop.mapreduce.protocol.ClientProtocolIOExceptionInterruptedExceptionpublic JobStatus[] getAllJobs() throws IOException, InterruptedException
getAllJobs in interface org.apache.hadoop.mapreduce.protocol.ClientProtocolIOExceptionInterruptedExceptionpublic TaskTrackerInfo[] getBlacklistedTrackers() throws IOException, InterruptedException
getBlacklistedTrackers in interface org.apache.hadoop.mapreduce.protocol.ClientProtocolIOExceptionInterruptedExceptionpublic ClusterMetrics getClusterMetrics() throws IOException, InterruptedException
getClusterMetrics in interface org.apache.hadoop.mapreduce.protocol.ClientProtocolIOExceptionInterruptedExceptionpublic org.apache.hadoop.security.token.Token<org.apache.hadoop.mapreduce.security.token.delegation.DelegationTokenIdentifier> getDelegationToken(Text renewer) throws IOException, InterruptedException
getDelegationToken in interface org.apache.hadoop.mapreduce.protocol.ClientProtocolIOExceptionInterruptedExceptionpublic String getFilesystemName() throws IOException, InterruptedException
getFilesystemName in interface org.apache.hadoop.mapreduce.protocol.ClientProtocolIOExceptionInterruptedExceptionpublic JobID getNewJobID() throws IOException, InterruptedException
getNewJobID in interface org.apache.hadoop.mapreduce.protocol.ClientProtocolIOExceptionInterruptedExceptionpublic QueueInfo getQueue(String queueName) throws IOException, InterruptedException
getQueue in interface org.apache.hadoop.mapreduce.protocol.ClientProtocolIOExceptionInterruptedExceptionpublic QueueAclsInfo[] getQueueAclsForCurrentUser() throws IOException, InterruptedException
getQueueAclsForCurrentUser in interface org.apache.hadoop.mapreduce.protocol.ClientProtocolIOExceptionInterruptedExceptionpublic QueueInfo[] getQueues() throws IOException, InterruptedException
getQueues in interface org.apache.hadoop.mapreduce.protocol.ClientProtocolIOExceptionInterruptedExceptionpublic QueueInfo[] getRootQueues() throws IOException, InterruptedException
getRootQueues in interface org.apache.hadoop.mapreduce.protocol.ClientProtocolIOExceptionInterruptedExceptionpublic QueueInfo[] getChildQueues(String parent) throws IOException, InterruptedException
getChildQueues in interface org.apache.hadoop.mapreduce.protocol.ClientProtocolIOExceptionInterruptedExceptionpublic String getStagingAreaDir() throws IOException, InterruptedException
getStagingAreaDir in interface org.apache.hadoop.mapreduce.protocol.ClientProtocolIOExceptionInterruptedExceptionpublic String getSystemDir() throws IOException, InterruptedException
getSystemDir in interface org.apache.hadoop.mapreduce.protocol.ClientProtocolIOExceptionInterruptedExceptionpublic long getTaskTrackerExpiryInterval()
throws IOException,
InterruptedException
getTaskTrackerExpiryInterval in interface org.apache.hadoop.mapreduce.protocol.ClientProtocolIOExceptionInterruptedExceptionpublic JobStatus submitJob(JobID jobId, String jobSubmitDir, Credentials ts) throws IOException, InterruptedException
submitJob in interface org.apache.hadoop.mapreduce.protocol.ClientProtocolIOExceptionInterruptedExceptionpublic org.apache.hadoop.yarn.api.records.ApplicationSubmissionContext createApplicationSubmissionContext(Configuration jobConf, String jobSubmitDir, Credentials ts) throws IOException
IOExceptionpublic void setJobPriority(JobID arg0, String arg1) throws IOException, InterruptedException
setJobPriority in interface org.apache.hadoop.mapreduce.protocol.ClientProtocolIOExceptionInterruptedExceptionpublic long getProtocolVersion(String arg0, long arg1) throws IOException
getProtocolVersion in interface org.apache.hadoop.ipc.VersionedProtocolIOExceptionpublic long renewDelegationToken(org.apache.hadoop.security.token.Token<org.apache.hadoop.mapreduce.security.token.delegation.DelegationTokenIdentifier> arg0) throws IOException, InterruptedException
renewDelegationToken in interface org.apache.hadoop.mapreduce.protocol.ClientProtocolIOExceptionInterruptedExceptionpublic Counters getJobCounters(JobID arg0) throws IOException, InterruptedException
getJobCounters in interface org.apache.hadoop.mapreduce.protocol.ClientProtocolIOExceptionInterruptedExceptionpublic String getJobHistoryDir() throws IOException, InterruptedException
getJobHistoryDir in interface org.apache.hadoop.mapreduce.protocol.ClientProtocolIOExceptionInterruptedExceptionpublic JobStatus getJobStatus(JobID jobID) throws IOException, InterruptedException
getJobStatus in interface org.apache.hadoop.mapreduce.protocol.ClientProtocolIOExceptionInterruptedExceptionpublic TaskCompletionEvent[] getTaskCompletionEvents(JobID arg0, int arg1, int arg2) throws IOException, InterruptedException
getTaskCompletionEvents in interface org.apache.hadoop.mapreduce.protocol.ClientProtocolIOExceptionInterruptedExceptionpublic String[] getTaskDiagnostics(TaskAttemptID arg0) throws IOException, InterruptedException
getTaskDiagnostics in interface org.apache.hadoop.mapreduce.protocol.ClientProtocolIOExceptionInterruptedExceptionpublic TaskReport[] getTaskReports(JobID jobID, TaskType taskType) throws IOException, InterruptedException
getTaskReports in interface org.apache.hadoop.mapreduce.protocol.ClientProtocolIOExceptionInterruptedExceptionpublic void killJob(JobID arg0) throws IOException, InterruptedException
killJob in interface org.apache.hadoop.mapreduce.protocol.ClientProtocolIOExceptionInterruptedExceptionpublic boolean killTask(TaskAttemptID arg0, boolean arg1) throws IOException, InterruptedException
killTask in interface org.apache.hadoop.mapreduce.protocol.ClientProtocolIOExceptionInterruptedExceptionpublic AccessControlList getQueueAdmins(String arg0) throws IOException
getQueueAdmins in interface org.apache.hadoop.mapreduce.protocol.ClientProtocolIOExceptionpublic Cluster.JobTrackerStatus getJobTrackerStatus() throws IOException, InterruptedException
getJobTrackerStatus in interface org.apache.hadoop.mapreduce.protocol.ClientProtocolIOExceptionInterruptedExceptionpublic org.apache.hadoop.ipc.ProtocolSignature getProtocolSignature(String protocol, long clientVersion, int clientMethodsHash) throws IOException
getProtocolSignature in interface org.apache.hadoop.ipc.VersionedProtocolIOExceptionpublic org.apache.hadoop.mapreduce.v2.LogParams getLogFileParams(JobID jobID, TaskAttemptID taskAttemptID) throws IOException
getLogFileParams in interface org.apache.hadoop.mapreduce.protocol.ClientProtocolIOExceptionpublic void close()
throws IOException
IOExceptionCopyright © 2018 CERN. All Rights Reserved.