Search in sources :

Example 81 with JobId

use of org.apache.hadoop.mapreduce.v2.api.records.JobId in project hadoop by apache.

the class JobReportPBImpl method getJobId.

@Override
public synchronized JobId getJobId() {
    JobReportProtoOrBuilder p = viaProto ? proto : builder;
    if (this.jobId != null) {
        return this.jobId;
    }
    if (!p.hasJobId()) {
        return null;
    }
    this.jobId = convertFromProtoFormat(p.getJobId());
    return this.jobId;
}
Also used : JobReportProtoOrBuilder(org.apache.hadoop.mapreduce.v2.proto.MRProtos.JobReportProtoOrBuilder)

Example 82 with JobId

use of org.apache.hadoop.mapreduce.v2.api.records.JobId in project hadoop by apache.

the class TaskIdPBImpl method getJobId.

@Override
public synchronized JobId getJobId() {
    TaskIdProtoOrBuilder p = viaProto ? proto : builder;
    if (this.jobId != null) {
        return this.jobId;
    }
    if (!p.hasJobId()) {
        return null;
    }
    jobId = convertFromProtoFormat(p.getJobId());
    return jobId;
}
Also used : TaskIdProtoOrBuilder(org.apache.hadoop.mapreduce.v2.proto.MRProtos.TaskIdProtoOrBuilder)

Example 83 with JobId

use of org.apache.hadoop.mapreduce.v2.api.records.JobId in project hadoop by apache.

the class GetJobReportRequestPBImpl method getJobId.

@Override
public JobId getJobId() {
    GetJobReportRequestProtoOrBuilder p = viaProto ? proto : builder;
    if (this.jobId != null) {
        return this.jobId;
    }
    if (!p.hasJobId()) {
        return null;
    }
    this.jobId = convertFromProtoFormat(p.getJobId());
    return this.jobId;
}
Also used : GetJobReportRequestProtoOrBuilder(org.apache.hadoop.mapreduce.v2.proto.MRServiceProtos.GetJobReportRequestProtoOrBuilder)

Example 84 with JobId

use of org.apache.hadoop.mapreduce.v2.api.records.JobId in project hadoop by apache.

the class GetTaskAttemptCompletionEventsRequestPBImpl method getJobId.

@Override
public JobId getJobId() {
    GetTaskAttemptCompletionEventsRequestProtoOrBuilder p = viaProto ? proto : builder;
    if (this.jobId != null) {
        return this.jobId;
    }
    if (!p.hasJobId()) {
        return null;
    }
    this.jobId = convertFromProtoFormat(p.getJobId());
    return this.jobId;
}
Also used : GetTaskAttemptCompletionEventsRequestProtoOrBuilder(org.apache.hadoop.mapreduce.v2.proto.MRServiceProtos.GetTaskAttemptCompletionEventsRequestProtoOrBuilder)

Example 85 with JobId

use of org.apache.hadoop.mapreduce.v2.api.records.JobId in project hadoop by apache.

the class MRBuilderUtils method newTaskId.

public static TaskId newTaskId(JobId jobId, int id, TaskType taskType) {
    TaskId taskId = Records.newRecord(TaskId.class);
    taskId.setJobId(jobId);
    taskId.setId(id);
    taskId.setTaskType(taskType);
    return taskId;
}
Also used : TaskId(org.apache.hadoop.mapreduce.v2.api.records.TaskId)

Aggregations

JobId (org.apache.hadoop.mapreduce.v2.api.records.JobId)276 Test (org.junit.Test)238 Job (org.apache.hadoop.mapreduce.v2.app.job.Job)212 ClientResponse (com.sun.jersey.api.client.ClientResponse)103 WebResource (com.sun.jersey.api.client.WebResource)103 Task (org.apache.hadoop.mapreduce.v2.app.job.Task)88 JSONObject (org.codehaus.jettison.json.JSONObject)81 Configuration (org.apache.hadoop.conf.Configuration)77 TaskId (org.apache.hadoop.mapreduce.v2.api.records.TaskId)61 ApplicationAttemptId (org.apache.hadoop.yarn.api.records.ApplicationAttemptId)55 Path (org.apache.hadoop.fs.Path)52 TaskAttemptId (org.apache.hadoop.mapreduce.v2.api.records.TaskAttemptId)51 ApplicationId (org.apache.hadoop.yarn.api.records.ApplicationId)47 TaskAttempt (org.apache.hadoop.mapreduce.v2.app.job.TaskAttempt)41 YarnConfiguration (org.apache.hadoop.yarn.conf.YarnConfiguration)36 AppContext (org.apache.hadoop.mapreduce.v2.app.AppContext)35 IOException (java.io.IOException)32 JobConf (org.apache.hadoop.mapred.JobConf)28 HistoryFileInfo (org.apache.hadoop.mapreduce.v2.hs.HistoryFileManager.HistoryFileInfo)25 JobID (org.apache.hadoop.mapreduce.JobID)23