org.apache.hadoop.mapred
Class ResourceMgrDelegate
java.lang.Object
org.apache.hadoop.service.AbstractService
org.apache.hadoop.yarn.client.api.YarnClient
org.apache.hadoop.mapred.ResourceMgrDelegate
- All Implemented Interfaces:
- Closeable, org.apache.hadoop.service.Service
public class ResourceMgrDelegate
- extends org.apache.hadoop.yarn.client.api.YarnClient
| Nested classes/interfaces inherited from interface org.apache.hadoop.service.Service |
org.apache.hadoop.service.Service.STATE |
|
Field Summary |
protected org.apache.hadoop.yarn.client.api.YarnClient |
client
|
|
Constructor Summary |
ResourceMgrDelegate(org.apache.hadoop.yarn.conf.YarnConfiguration conf)
Delegate responsible for communicating with the Resource Manager's
ApplicationClientProtocol. |
| Methods inherited from class org.apache.hadoop.yarn.client.api.YarnClient |
createYarnClient |
| Methods inherited from class org.apache.hadoop.service.AbstractService |
close, getBlockers, getConfig, getFailureCause, getFailureState, getLifecycleHistory, getName, getServiceState, getStartTime, init, isInState, noteFailure, putBlocker, registerGlobalListener, registerServiceListener, removeBlocker, setConfig, start, stop, toString, unregisterGlobalListener, unregisterServiceListener, waitForServiceToStop |
client
@InterfaceAudience.Private
protected org.apache.hadoop.yarn.client.api.YarnClient client
ResourceMgrDelegate
public ResourceMgrDelegate(org.apache.hadoop.yarn.conf.YarnConfiguration conf)
- Delegate responsible for communicating with the Resource Manager's
ApplicationClientProtocol.
- Parameters:
conf - the configuration object.
serviceInit
protected void serviceInit(org.apache.hadoop.conf.Configuration conf)
throws Exception
- Overrides:
serviceInit in class org.apache.hadoop.service.AbstractService
- Throws:
Exception
serviceStart
protected void serviceStart()
throws Exception
- Overrides:
serviceStart in class org.apache.hadoop.service.AbstractService
- Throws:
Exception
serviceStop
protected void serviceStop()
throws Exception
- Overrides:
serviceStop in class org.apache.hadoop.service.AbstractService
- Throws:
Exception
getActiveTrackers
public org.apache.hadoop.mapreduce.TaskTrackerInfo[] getActiveTrackers()
throws IOException,
InterruptedException
- Throws:
IOException
InterruptedException
getAllJobs
public org.apache.hadoop.mapreduce.JobStatus[] getAllJobs()
throws IOException,
InterruptedException
- Throws:
IOException
InterruptedException
getBlacklistedTrackers
public org.apache.hadoop.mapreduce.TaskTrackerInfo[] getBlacklistedTrackers()
throws IOException,
InterruptedException
- Throws:
IOException
InterruptedException
getClusterMetrics
public org.apache.hadoop.mapreduce.ClusterMetrics getClusterMetrics()
throws IOException,
InterruptedException
- Throws:
IOException
InterruptedException
getRMDelegationTokenService
public org.apache.hadoop.io.Text getRMDelegationTokenService()
getDelegationToken
public org.apache.hadoop.security.token.Token getDelegationToken(org.apache.hadoop.io.Text renewer)
throws IOException,
InterruptedException
- Throws:
IOException
InterruptedException
getFilesystemName
public String getFilesystemName()
throws IOException,
InterruptedException
- Throws:
IOException
InterruptedException
getNewJobID
public org.apache.hadoop.mapreduce.JobID getNewJobID()
throws IOException,
InterruptedException
- Throws:
IOException
InterruptedException
getQueue
public org.apache.hadoop.mapreduce.QueueInfo getQueue(String queueName)
throws IOException,
InterruptedException
- Throws:
IOException
InterruptedException
getQueueAclsForCurrentUser
public org.apache.hadoop.mapreduce.QueueAclsInfo[] getQueueAclsForCurrentUser()
throws IOException,
InterruptedException
- Throws:
IOException
InterruptedException
getQueues
public org.apache.hadoop.mapreduce.QueueInfo[] getQueues()
throws IOException,
InterruptedException
- Throws:
IOException
InterruptedException
getRootQueues
public org.apache.hadoop.mapreduce.QueueInfo[] getRootQueues()
throws IOException,
InterruptedException
- Throws:
IOException
InterruptedException
getChildQueues
public org.apache.hadoop.mapreduce.QueueInfo[] getChildQueues(String parent)
throws IOException,
InterruptedException
- Throws:
IOException
InterruptedException
getStagingAreaDir
public String getStagingAreaDir()
throws IOException,
InterruptedException
- Throws:
IOException
InterruptedException
getSystemDir
public String getSystemDir()
throws IOException,
InterruptedException
- Throws:
IOException
InterruptedException
getTaskTrackerExpiryInterval
public long getTaskTrackerExpiryInterval()
throws IOException,
InterruptedException
- Throws:
IOException
InterruptedException
setJobPriority
public void setJobPriority(org.apache.hadoop.mapreduce.JobID arg0,
String arg1)
throws IOException,
InterruptedException
- Throws:
IOException
InterruptedException
getProtocolVersion
public long getProtocolVersion(String arg0,
long arg1)
throws IOException
- Throws:
IOException
getApplicationId
public org.apache.hadoop.yarn.api.records.ApplicationId getApplicationId()
createApplication
public org.apache.hadoop.yarn.client.api.YarnClientApplication createApplication()
throws org.apache.hadoop.yarn.exceptions.YarnException,
IOException
- Specified by:
createApplication in class org.apache.hadoop.yarn.client.api.YarnClient
- Throws:
org.apache.hadoop.yarn.exceptions.YarnException
IOException
submitApplication
public org.apache.hadoop.yarn.api.records.ApplicationId submitApplication(org.apache.hadoop.yarn.api.records.ApplicationSubmissionContext appContext)
throws org.apache.hadoop.yarn.exceptions.YarnException,
IOException
- Specified by:
submitApplication in class org.apache.hadoop.yarn.client.api.YarnClient
- Throws:
org.apache.hadoop.yarn.exceptions.YarnException
IOException
killApplication
public void killApplication(org.apache.hadoop.yarn.api.records.ApplicationId applicationId)
throws org.apache.hadoop.yarn.exceptions.YarnException,
IOException
- Specified by:
killApplication in class org.apache.hadoop.yarn.client.api.YarnClient
- Throws:
org.apache.hadoop.yarn.exceptions.YarnException
IOException
getApplicationReport
public org.apache.hadoop.yarn.api.records.ApplicationReport getApplicationReport(org.apache.hadoop.yarn.api.records.ApplicationId appId)
throws org.apache.hadoop.yarn.exceptions.YarnException,
IOException
- Specified by:
getApplicationReport in class org.apache.hadoop.yarn.client.api.YarnClient
- Throws:
org.apache.hadoop.yarn.exceptions.YarnException
IOException
getAMRMToken
public org.apache.hadoop.security.token.Token<org.apache.hadoop.yarn.security.AMRMTokenIdentifier> getAMRMToken(org.apache.hadoop.yarn.api.records.ApplicationId appId)
throws org.apache.hadoop.yarn.exceptions.YarnException,
IOException
- Specified by:
getAMRMToken in class org.apache.hadoop.yarn.client.api.YarnClient
- Throws:
org.apache.hadoop.yarn.exceptions.YarnException
IOException
getApplications
public List<org.apache.hadoop.yarn.api.records.ApplicationReport> getApplications()
throws org.apache.hadoop.yarn.exceptions.YarnException,
IOException
- Specified by:
getApplications in class org.apache.hadoop.yarn.client.api.YarnClient
- Throws:
org.apache.hadoop.yarn.exceptions.YarnException
IOException
getApplications
public List<org.apache.hadoop.yarn.api.records.ApplicationReport> getApplications(Set<String> applicationTypes)
throws org.apache.hadoop.yarn.exceptions.YarnException,
IOException
- Specified by:
getApplications in class org.apache.hadoop.yarn.client.api.YarnClient
- Throws:
org.apache.hadoop.yarn.exceptions.YarnException
IOException
getApplications
public List<org.apache.hadoop.yarn.api.records.ApplicationReport> getApplications(EnumSet<org.apache.hadoop.yarn.api.records.YarnApplicationState> applicationStates)
throws org.apache.hadoop.yarn.exceptions.YarnException,
IOException
- Specified by:
getApplications in class org.apache.hadoop.yarn.client.api.YarnClient
- Throws:
org.apache.hadoop.yarn.exceptions.YarnException
IOException
getApplications
public List<org.apache.hadoop.yarn.api.records.ApplicationReport> getApplications(Set<String> applicationTypes,
EnumSet<org.apache.hadoop.yarn.api.records.YarnApplicationState> applicationStates)
throws org.apache.hadoop.yarn.exceptions.YarnException,
IOException
- Specified by:
getApplications in class org.apache.hadoop.yarn.client.api.YarnClient
- Throws:
org.apache.hadoop.yarn.exceptions.YarnException
IOException
getYarnClusterMetrics
public org.apache.hadoop.yarn.api.records.YarnClusterMetrics getYarnClusterMetrics()
throws org.apache.hadoop.yarn.exceptions.YarnException,
IOException
- Specified by:
getYarnClusterMetrics in class org.apache.hadoop.yarn.client.api.YarnClient
- Throws:
org.apache.hadoop.yarn.exceptions.YarnException
IOException
getNodeReports
public List<org.apache.hadoop.yarn.api.records.NodeReport> getNodeReports(org.apache.hadoop.yarn.api.records.NodeState... states)
throws org.apache.hadoop.yarn.exceptions.YarnException,
IOException
- Specified by:
getNodeReports in class org.apache.hadoop.yarn.client.api.YarnClient
- Throws:
org.apache.hadoop.yarn.exceptions.YarnException
IOException
getRMDelegationToken
public org.apache.hadoop.yarn.api.records.Token getRMDelegationToken(org.apache.hadoop.io.Text renewer)
throws org.apache.hadoop.yarn.exceptions.YarnException,
IOException
- Specified by:
getRMDelegationToken in class org.apache.hadoop.yarn.client.api.YarnClient
- Throws:
org.apache.hadoop.yarn.exceptions.YarnException
IOException
getQueueInfo
public org.apache.hadoop.yarn.api.records.QueueInfo getQueueInfo(String queueName)
throws org.apache.hadoop.yarn.exceptions.YarnException,
IOException
- Specified by:
getQueueInfo in class org.apache.hadoop.yarn.client.api.YarnClient
- Throws:
org.apache.hadoop.yarn.exceptions.YarnException
IOException
getAllQueues
public List<org.apache.hadoop.yarn.api.records.QueueInfo> getAllQueues()
throws org.apache.hadoop.yarn.exceptions.YarnException,
IOException
- Specified by:
getAllQueues in class org.apache.hadoop.yarn.client.api.YarnClient
- Throws:
org.apache.hadoop.yarn.exceptions.YarnException
IOException
getRootQueueInfos
public List<org.apache.hadoop.yarn.api.records.QueueInfo> getRootQueueInfos()
throws org.apache.hadoop.yarn.exceptions.YarnException,
IOException
- Specified by:
getRootQueueInfos in class org.apache.hadoop.yarn.client.api.YarnClient
- Throws:
org.apache.hadoop.yarn.exceptions.YarnException
IOException
getChildQueueInfos
public List<org.apache.hadoop.yarn.api.records.QueueInfo> getChildQueueInfos(String parent)
throws org.apache.hadoop.yarn.exceptions.YarnException,
IOException
- Specified by:
getChildQueueInfos in class org.apache.hadoop.yarn.client.api.YarnClient
- Throws:
org.apache.hadoop.yarn.exceptions.YarnException
IOException
getQueueAclsInfo
public List<org.apache.hadoop.yarn.api.records.QueueUserACLInfo> getQueueAclsInfo()
throws org.apache.hadoop.yarn.exceptions.YarnException,
IOException
- Specified by:
getQueueAclsInfo in class org.apache.hadoop.yarn.client.api.YarnClient
- Throws:
org.apache.hadoop.yarn.exceptions.YarnException
IOException
getApplicationAttemptReport
public org.apache.hadoop.yarn.api.records.ApplicationAttemptReport getApplicationAttemptReport(org.apache.hadoop.yarn.api.records.ApplicationAttemptId appAttemptId)
throws org.apache.hadoop.yarn.exceptions.YarnException,
IOException
- Specified by:
getApplicationAttemptReport in class org.apache.hadoop.yarn.client.api.YarnClient
- Throws:
org.apache.hadoop.yarn.exceptions.YarnException
IOException
getApplicationAttempts
public List<org.apache.hadoop.yarn.api.records.ApplicationAttemptReport> getApplicationAttempts(org.apache.hadoop.yarn.api.records.ApplicationId appId)
throws org.apache.hadoop.yarn.exceptions.YarnException,
IOException
- Specified by:
getApplicationAttempts in class org.apache.hadoop.yarn.client.api.YarnClient
- Throws:
org.apache.hadoop.yarn.exceptions.YarnException
IOException
getContainerReport
public org.apache.hadoop.yarn.api.records.ContainerReport getContainerReport(org.apache.hadoop.yarn.api.records.ContainerId containerId)
throws org.apache.hadoop.yarn.exceptions.YarnException,
IOException
- Specified by:
getContainerReport in class org.apache.hadoop.yarn.client.api.YarnClient
- Throws:
org.apache.hadoop.yarn.exceptions.YarnException
IOException
getContainers
public List<org.apache.hadoop.yarn.api.records.ContainerReport> getContainers(org.apache.hadoop.yarn.api.records.ApplicationAttemptId applicationAttemptId)
throws org.apache.hadoop.yarn.exceptions.YarnException,
IOException
- Specified by:
getContainers in class org.apache.hadoop.yarn.client.api.YarnClient
- Throws:
org.apache.hadoop.yarn.exceptions.YarnException
IOException
moveApplicationAcrossQueues
public void moveApplicationAcrossQueues(org.apache.hadoop.yarn.api.records.ApplicationId appId,
String queue)
throws org.apache.hadoop.yarn.exceptions.YarnException,
IOException
- Specified by:
moveApplicationAcrossQueues in class org.apache.hadoop.yarn.client.api.YarnClient
- Throws:
org.apache.hadoop.yarn.exceptions.YarnException
IOException
Copyright © 2014 Apache Software Foundation. All Rights Reserved.