@Public @Stable public class Job extends ControlledJob
  • Field Details

  • Constructor Details

  • Method Details

    • getAssignedJobID

      public JobID getAssignedJobID()
      Returns:
      the mapred ID of this job as assigned by the mapred framework.
    • setAssignedJobID

      @Deprecated public void setAssignedJobID(JobID mapredJobID)
      Deprecated.
      setAssignedJobID should not be called. JOBID is set by the framework.
    • getJobConf

      public JobConf getJobConf()
      Returns:
      the mapred job conf of this job
    • setJobConf

      public void setJobConf(JobConf jobConf)
      Set the mapred job conf for this job.
      Parameters:
      jobConf - the mapred job conf for this job.
    • getState

      public int getState()
      Returns:
      the state of this job
    • setState

      @Deprecated protected void setState(int state)
      Deprecated.
      This is a no-op function, Its a behavior change from 1.x We no more can change the state from job
      Parameters:
      state - the new state for this job.
    • addDependingJob

      public boolean addDependingJob(Job dependingJob)
      Add a job to this jobs' dependency list. Dependent jobs can only be added while a Job is waiting to run, not during or afterwards.
      Parameters:
      dependingJob - Job that this Job depends on.
      Returns:
      true if the Job was added.
    • getJobClient

      public JobClient getJobClient()
      Returns:
      the job client of this job
    • getDependingJobs

      public ArrayList<Job> getDependingJobs()
      Returns:
      the depending jobs of this job
    • getMapredJobID

      public String getMapredJobID()
      Returns:
      the mapred ID of this job as assigned by the mapred framework.
    • setMapredJobID

      @Deprecated public void setMapredJobID(String mapredJobID)
      Deprecated.
      This is no-op method for backward compatibility. It's a behavior change from 1.x, we can not change job ids from job.
      Parameters:
      mapredJobID - the mapred job ID for this job.