org.apache.hadoop.mapred
Class WebHCatJTShim23

java.lang.Object
  extended by org.apache.hadoop.mapred.WebHCatJTShim23
All Implemented Interfaces:
HadoopShims.WebHCatJTShim

public class WebHCatJTShim23
extends Object
implements HadoopShims.WebHCatJTShim


Constructor Summary
WebHCatJTShim23(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.security.UserGroupInformation ugi)
          Create a connection to the Job Tracker.
 
Method Summary
 void addCacheFile(URI uri, org.apache.hadoop.mapreduce.Job job)
           
 void close()
          Close the connection to the Job Tracker.
 org.apache.hadoop.mapred.JobStatus[] getAllJobs()
          Get all the jobs submitted.
 org.apache.hadoop.mapred.JobProfile getJobProfile(org.apache.hadoop.mapred.JobID jobid)
          Grab a handle to a job that is already known to the JobTracker.
 org.apache.hadoop.mapred.JobStatus getJobStatus(org.apache.hadoop.mapred.JobID jobid)
          Grab a handle to a job that is already known to the JobTracker.
 void killJob(org.apache.hadoop.mapred.JobID jobid)
          Kill a job.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebHCatJTShim23

public WebHCatJTShim23(org.apache.hadoop.conf.Configuration conf,
                       org.apache.hadoop.security.UserGroupInformation ugi)
                throws IOException
Create a connection to the Job Tracker.

Throws:
IOException
Method Detail

getJobProfile

public org.apache.hadoop.mapred.JobProfile getJobProfile(org.apache.hadoop.mapred.JobID jobid)
                                                  throws IOException
Grab a handle to a job that is already known to the JobTracker.

Specified by:
getJobProfile in interface HadoopShims.WebHCatJTShim
Returns:
Profile of the job, or null if not found.
Throws:
IOException

getJobStatus

public org.apache.hadoop.mapred.JobStatus getJobStatus(org.apache.hadoop.mapred.JobID jobid)
                                                throws IOException
Grab a handle to a job that is already known to the JobTracker.

Specified by:
getJobStatus in interface HadoopShims.WebHCatJTShim
Returns:
Status of the job, or null if not found.
Throws:
IOException

killJob

public void killJob(org.apache.hadoop.mapred.JobID jobid)
             throws IOException
Kill a job.

Specified by:
killJob in interface HadoopShims.WebHCatJTShim
Throws:
IOException

getAllJobs

public org.apache.hadoop.mapred.JobStatus[] getAllJobs()
                                                throws IOException
Get all the jobs submitted.

Specified by:
getAllJobs in interface HadoopShims.WebHCatJTShim
Throws:
IOException

close

public void close()
Close the connection to the Job Tracker.

Specified by:
close in interface HadoopShims.WebHCatJTShim

addCacheFile

public void addCacheFile(URI uri,
                         org.apache.hadoop.mapreduce.Job job)
Specified by:
addCacheFile in interface HadoopShims.WebHCatJTShim


Copyright © 2014 The Apache Software Foundation. All rights reserved.