Search in sources :

Example 1 with JobProfile

use of org.apache.hadoop.mapred.JobProfile in project hive by apache.

the class StatusDelegator method makeStatus.

static QueueStatusBean makeStatus(WebHCatJTShim tracker, JobID jobid, JobState state) throws BadParam, IOException {
    JobStatus status = tracker.getJobStatus(jobid);
    JobProfile profile = tracker.getJobProfile(jobid);
    if (// No such job.
    status == null || profile == null)
        throw new BadParam("Could not find job " + jobid);
    return new QueueStatusBean(state, status, profile);
}
Also used : JobStatus(org.apache.hadoop.mapred.JobStatus) JobProfile(org.apache.hadoop.mapred.JobProfile)

Aggregations

JobProfile (org.apache.hadoop.mapred.JobProfile)1 JobStatus (org.apache.hadoop.mapred.JobStatus)1