|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@InterfaceAudience.Private @InterfaceStability.Stable public interface ClientProtocol
Protocol that a JobClient and the central JobTracker use to communicate. The JobClient can use these methods to submit a Job for execution, and learn about the current system status.
Field Summary | |
---|---|
static long |
versionID
|
Method Summary | |
---|---|
void |
cancelDelegationToken(org.apache.hadoop.security.token.Token<DelegationTokenIdentifier> token)
Cancel a delegation token. |
TaskTrackerInfo[] |
getActiveTrackers()
Get all active trackers in cluster. |
JobStatus[] |
getAllJobs()
Get all the jobs submitted. |
TaskTrackerInfo[] |
getBlacklistedTrackers()
Get all blacklisted trackers in cluster. |
QueueInfo[] |
getChildQueues(String queueName)
Returns immediate children of queueName. |
ClusterMetrics |
getClusterMetrics()
Get the current status of the cluster |
org.apache.hadoop.security.token.Token<DelegationTokenIdentifier> |
getDelegationToken(org.apache.hadoop.io.Text renewer)
Get a new delegation token. |
String |
getFilesystemName()
A MapReduce system always operates on a single filesystem. |
Counters |
getJobCounters(JobID jobid)
Grab the current job counters |
String |
getJobHistoryDir()
Gets the directory location of the completed job history files. |
JobStatus |
getJobStatus(JobID jobid)
Grab a handle to a job that is already known to the JobTracker. |
Cluster.JobTrackerStatus |
getJobTrackerStatus()
Get the JobTracker's status. |
LogParams |
getLogFileParams(JobID jobID,
TaskAttemptID taskAttemptID)
Gets the location of the log file for a job if no taskAttemptId is specified, otherwise gets the log location for the taskAttemptId. |
JobID |
getNewJobID()
Allocate a name for the job. |
QueueInfo |
getQueue(String queueName)
Gets scheduling information associated with the particular Job queue |
QueueAclsInfo[] |
getQueueAclsForCurrentUser()
Gets the Queue ACLs for current user |
org.apache.hadoop.security.authorize.AccessControlList |
getQueueAdmins(String queueName)
Get the administrators of the given job-queue. |
QueueInfo[] |
getQueues()
Gets set of Queues associated with the Job Tracker |
QueueInfo[] |
getRootQueues()
Gets the root level queues. |
String |
getStagingAreaDir()
Get a hint from the JobTracker where job-specific files are to be placed. |
String |
getSystemDir()
Grab the jobtracker system directory path where job-specific files are to be placed. |
TaskCompletionEvent[] |
getTaskCompletionEvents(JobID jobid,
int fromEventId,
int maxEvents)
Get task completion events for the jobid, starting from fromEventId. |
String[] |
getTaskDiagnostics(TaskAttemptID taskId)
Get the diagnostics for a given task in a given job |
TaskReport[] |
getTaskReports(JobID jobid,
TaskType type)
Grab a bunch of info on the tasks that make up the job |
long |
getTaskTrackerExpiryInterval()
|
void |
killJob(JobID jobid)
Kill the indicated job |
boolean |
killTask(TaskAttemptID taskId,
boolean shouldFail)
Kill indicated task attempt. |
long |
renewDelegationToken(org.apache.hadoop.security.token.Token<DelegationTokenIdentifier> token)
Renew an existing delegation token |
void |
setJobPriority(JobID jobid,
String priority)
Set the priority of the specified job |
JobStatus |
submitJob(JobID jobId,
String jobSubmitDir,
org.apache.hadoop.security.Credentials ts)
Submit a Job for execution. |
Methods inherited from interface org.apache.hadoop.ipc.VersionedProtocol |
---|
getProtocolSignature, getProtocolVersion |
Field Detail |
---|
static final long versionID
Method Detail |
---|
JobID getNewJobID() throws IOException, InterruptedException
IOException
InterruptedException
JobStatus submitJob(JobID jobId, String jobSubmitDir, org.apache.hadoop.security.Credentials ts) throws IOException, InterruptedException
IOException
InterruptedException
ClusterMetrics getClusterMetrics() throws IOException, InterruptedException
IOException
InterruptedException
Cluster.JobTrackerStatus getJobTrackerStatus() throws IOException, InterruptedException
Cluster.JobTrackerStatus
of the JobTracker
IOException
InterruptedException
long getTaskTrackerExpiryInterval() throws IOException, InterruptedException
IOException
InterruptedException
org.apache.hadoop.security.authorize.AccessControlList getQueueAdmins(String queueName) throws IOException
queueName
-
IOException
void killJob(JobID jobid) throws IOException, InterruptedException
IOException
InterruptedException
void setJobPriority(JobID jobid, String priority) throws IOException, InterruptedException
jobid
- ID of the jobpriority
- Priority to be set for the job
IOException
InterruptedException
boolean killTask(TaskAttemptID taskId, boolean shouldFail) throws IOException, InterruptedException
taskId
- the id of the task to kill.shouldFail
- if true the task is failed and added to failed tasks list, otherwise
it is just killed, w/o affecting job failure status.
IOException
InterruptedException
JobStatus getJobStatus(JobID jobid) throws IOException, InterruptedException
IOException
InterruptedException
Counters getJobCounters(JobID jobid) throws IOException, InterruptedException
IOException
InterruptedException
TaskReport[] getTaskReports(JobID jobid, TaskType type) throws IOException, InterruptedException
IOException
InterruptedException
String getFilesystemName() throws IOException, InterruptedException
IOException
InterruptedException
JobStatus[] getAllJobs() throws IOException, InterruptedException
IOException
InterruptedException
TaskCompletionEvent[] getTaskCompletionEvents(JobID jobid, int fromEventId, int maxEvents) throws IOException, InterruptedException
jobid
- job idfromEventId
- event id to start from.maxEvents
- the max number of events we want to look at
IOException
InterruptedException
String[] getTaskDiagnostics(TaskAttemptID taskId) throws IOException, InterruptedException
taskId
- the id of the task
IOException
InterruptedException
TaskTrackerInfo[] getActiveTrackers() throws IOException, InterruptedException
IOException
InterruptedException
TaskTrackerInfo[] getBlacklistedTrackers() throws IOException, InterruptedException
IOException
InterruptedException
String getSystemDir() throws IOException, InterruptedException
IOException
InterruptedException
String getStagingAreaDir() throws IOException, InterruptedException
IOException
InterruptedException
String getJobHistoryDir() throws IOException, InterruptedException
IOException
InterruptedException
QueueInfo[] getQueues() throws IOException, InterruptedException
IOException
InterruptedException
QueueInfo getQueue(String queueName) throws IOException, InterruptedException
queueName
- Queue Name
IOException
InterruptedException
QueueAclsInfo[] getQueueAclsForCurrentUser() throws IOException, InterruptedException
IOException
InterruptedException
QueueInfo[] getRootQueues() throws IOException, InterruptedException
IOException
InterruptedException
QueueInfo[] getChildQueues(String queueName) throws IOException, InterruptedException
queueName
-
IOException
InterruptedException
org.apache.hadoop.security.token.Token<DelegationTokenIdentifier> getDelegationToken(org.apache.hadoop.io.Text renewer) throws IOException, InterruptedException
renewer
- the user other than the creator (if any) that can renew the
token
IOException
InterruptedException
long renewDelegationToken(org.apache.hadoop.security.token.Token<DelegationTokenIdentifier> token) throws IOException, InterruptedException
token
- the token to renew
IOException
InterruptedException
void cancelDelegationToken(org.apache.hadoop.security.token.Token<DelegationTokenIdentifier> token) throws IOException, InterruptedException
token
- the token to cancel
IOException
InterruptedException
LogParams getLogFileParams(JobID jobID, TaskAttemptID taskAttemptID) throws IOException, InterruptedException
jobID
- the jobId.taskAttemptID
- the taskAttemptId.
IOException
InterruptedException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |