@InterfaceAudience.Private @InterfaceStability.Unstable public class LocalJobRunner extends Object implements ClientProtocol
| Modifier and Type | Field and Description |
|---|---|
static String |
LOCAL_MAX_MAPS
The maximum number of map tasks to run in parallel in LocalJobRunner
|
static String |
LOCAL_MAX_REDUCES
The maximum number of reduce tasks to run in parallel in LocalJobRunner
|
static org.apache.commons.logging.Log |
LOG |
versionID| Constructor and Description |
|---|
LocalJobRunner(Configuration conf) |
LocalJobRunner(JobConf conf)
Deprecated.
|
public static final org.apache.commons.logging.Log LOG
public static final String LOCAL_MAX_MAPS
public static final String LOCAL_MAX_REDUCES
public LocalJobRunner(Configuration conf) throws IOException
IOException@Deprecated public LocalJobRunner(JobConf conf) throws IOException
IOExceptionpublic long getProtocolVersion(String protocol, long clientVersion)
getProtocolVersion in interface org.apache.hadoop.ipc.VersionedProtocolpublic org.apache.hadoop.ipc.ProtocolSignature getProtocolSignature(String protocol, long clientVersion, int clientMethodsHash) throws IOException
getProtocolSignature in interface org.apache.hadoop.ipc.VersionedProtocolIOExceptionpublic JobID getNewJobID()
getNewJobID in interface ClientProtocolpublic JobStatus submitJob(JobID jobid, String jobSubmitDir, Credentials credentials) throws IOException
submitJob in interface ClientProtocolIOExceptionpublic void killJob(JobID id)
killJob in interface ClientProtocolpublic void setJobPriority(JobID id, String jp) throws IOException
setJobPriority in interface ClientProtocolIOExceptionpublic boolean killTask(TaskAttemptID taskId, boolean shouldFail) throws IOException
killTask in interface ClientProtocolIOExceptionpublic TaskReport[] getTaskReports(JobID id, TaskType type)
getTaskReports in interface ClientProtocolpublic JobStatus getJobStatus(JobID id)
getJobStatus in interface ClientProtocolpublic Counters getJobCounters(JobID id)
getJobCounters in interface ClientProtocolpublic String getFilesystemName() throws IOException
getFilesystemName in interface ClientProtocolIOExceptionpublic ClusterMetrics getClusterMetrics()
getClusterMetrics in interface ClientProtocolpublic Cluster.JobTrackerStatus getJobTrackerStatus()
getJobTrackerStatus in interface ClientProtocolpublic long getTaskTrackerExpiryInterval()
throws IOException,
InterruptedException
getTaskTrackerExpiryInterval in interface ClientProtocolIOExceptionInterruptedExceptionpublic TaskTrackerInfo[] getActiveTrackers() throws IOException, InterruptedException
getActiveTrackers in interface ClientProtocolIOExceptionInterruptedExceptionpublic TaskTrackerInfo[] getBlacklistedTrackers() throws IOException, InterruptedException
getBlacklistedTrackers in interface ClientProtocolIOExceptionInterruptedExceptionpublic TaskCompletionEvent[] getTaskCompletionEvents(JobID jobid, int fromEventId, int maxEvents) throws IOException
getTaskCompletionEvents in interface ClientProtocolIOExceptionpublic JobStatus[] getAllJobs()
getAllJobs in interface ClientProtocolpublic String[] getTaskDiagnostics(TaskAttemptID taskid) throws IOException
getTaskDiagnostics in interface ClientProtocolIOExceptionpublic String getSystemDir()
getSystemDir in interface ClientProtocolClientProtocol.getSystemDir()public AccessControlList getQueueAdmins(String queueName) throws IOException
getQueueAdmins in interface ClientProtocolIOExceptionClientProtocol.getQueueAdmins(String)public String getStagingAreaDir() throws IOException
getStagingAreaDir in interface ClientProtocolIOExceptionClientProtocol.getStagingAreaDir()public String getJobHistoryDir()
getJobHistoryDir in interface ClientProtocolpublic QueueInfo[] getChildQueues(String queueName) throws IOException
getChildQueues in interface ClientProtocolIOExceptionpublic QueueInfo[] getRootQueues() throws IOException
getRootQueues in interface ClientProtocolIOExceptionpublic QueueInfo[] getQueues() throws IOException
getQueues in interface ClientProtocolIOExceptionpublic QueueInfo getQueue(String queue) throws IOException
getQueue in interface ClientProtocolIOExceptionpublic QueueAclsInfo[] getQueueAclsForCurrentUser() throws IOException
getQueueAclsForCurrentUser in interface ClientProtocolIOExceptionpublic static void setLocalMaxRunningMaps(JobContext job, int maxMaps)
job - the job to configuremaxMaps - the maximum number of map tasks to allow.public static int getLocalMaxRunningMaps(JobContext job)
public static void setLocalMaxRunningReduces(JobContext job, int maxReduces)
job - the job to configuremaxReduces - the maximum number of reduce tasks to allow.public static int getLocalMaxRunningReduces(JobContext job)
public void cancelDelegationToken(org.apache.hadoop.security.token.Token<DelegationTokenIdentifier> token) throws IOException, InterruptedException
cancelDelegationToken in interface ClientProtocolIOExceptionInterruptedExceptionpublic org.apache.hadoop.security.token.Token<DelegationTokenIdentifier> getDelegationToken(Text renewer) throws IOException, InterruptedException
getDelegationToken in interface ClientProtocolIOExceptionInterruptedExceptionpublic long renewDelegationToken(org.apache.hadoop.security.token.Token<DelegationTokenIdentifier> token) throws IOException, InterruptedException
renewDelegationToken in interface ClientProtocolIOExceptionInterruptedExceptionpublic LogParams getLogFileParams(JobID jobID, TaskAttemptID taskAttemptID) throws IOException, InterruptedException
getLogFileParams in interface ClientProtocolIOExceptionInterruptedExceptionCopyright © 2018 CERN. All Rights Reserved.