Save This Page
Home » hadoop-0.14.4 » org.apache » hadoop » mapred » [javadoc | source]
org.apache.hadoop.mapred
public class: JobClient [javadoc | source]
java.lang.Object
   org.apache.hadoop.util.ToolBase
      org.apache.hadoop.mapred.JobClient

All Implemented Interfaces:
    MRConstants, Tool

JobClient interacts with the JobTracker network interface. This object implements the job-control interface, and should be the primary method by which user programs interact with the networked job system.
Nested Class Summary:
public static enum class  JobClient.TaskStatusFilter   
class  JobClient.NetworkedJob  A NetworkedJob is an implementation of RunningJob. It holds a JobProfile object to provide some info, and interacts with the remote service to provide certain functionality. 
static class  JobClient.RawSplit   
Field Summary
static  long MAX_JOBPROFILE_AGE     
 JobSubmissionProtocol jobSubmitClient     
 FileSystem fs     
static  Random r     
Fields inherited from org.apache.hadoop.util.ToolBase:
conf
Constructor:
 public JobClient() 
 public JobClient(JobConf conf) throws IOException 
 public JobClient(InetSocketAddress jobTrackAddr,
    Configuration conf) throws IOException 
    Build a job client, connect to the indicated job tracker.
Method from org.apache.hadoop.mapred.JobClient Summary:
close,   getClusterStatus,   getConfiguration,   getFs,   getJob,   getMapTaskReports,   getReduceTaskReports,   getTaskOutputFilter,   getTaskOutputFilter,   init,   jobsToComplete,   main,   readSplitFile,   run,   runJob,   setTaskOutputFilter,   setTaskOutputFilter,   submitJob,   submitJob
Methods from org.apache.hadoop.util.ToolBase:
doMain,   getConf,   setConf
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.hadoop.mapred.JobClient Detail:
 public synchronized  void close() throws IOException 
 public ClusterStatus getClusterStatus() throws IOException 
 static Configuration getConfiguration(String jobTrackerSpec) 
 public synchronized FileSystem getFs() throws IOException 
    Get a filesystem handle. We need this to prepare jobs for submission to the MapReduce system.
 public RunningJob getJob(String jobid) throws IOException 
    Get an RunningJob object to track an ongoing job. Returns null if the id does not correspond to any known job.
 public TaskReport[] getMapTaskReports(String jobId) throws IOException 
    Get the information of the current state of the map tasks of a job.
 public TaskReport[] getReduceTaskReports(String jobId) throws IOException 
    Get the information of the current state of the reduce tasks of a job.
 public JobClient.TaskStatusFilter getTaskOutputFilter() 
    Returns task output filter.
 public static JobClient.TaskStatusFilter getTaskOutputFilter(JobConf job) 
    Get the task output filter out of the JobConf
 public  void init(JobConf conf) throws IOException 
 public JobStatus[] jobsToComplete() throws IOException 
 public static  void main(String[] argv) throws Exception 
 static JobClient.RawSplit[] readSplitFile(DataInput in) throws IOException 
    Read a splits file into a list of raw splits
 public int run(String[] argv) throws Exception 
 public static RunningJob runJob(JobConf job) throws IOException 
    Utility that submits a job, then polls for progress until the job is complete.
 public  void setTaskOutputFilter(JobClient.TaskStatusFilter newValue) 
    Sets the output filter for tasks. only those tasks are printed whose output matches the filter.
 public static  void setTaskOutputFilter(JobConf job,
    JobClient.TaskStatusFilter newValue) 
    Modify the JobConf to set the task output filter
 public RunningJob submitJob(String jobFile) throws IOException, FileNotFoundException, InvalidJobConfException 
    Submit a job to the MR system
 public RunningJob submitJob(JobConf job) throws IOException, FileNotFoundException, InvalidJobConfException 
    Submit a job to the MR system