Search in sources :

Example 1 with GetTaskReportsResponse

use of org.apache.hadoop.mapreduce.v2.api.protocolrecords.GetTaskReportsResponse in project hadoop by apache.

the class ClientServiceDelegate method getTaskReports.

public org.apache.hadoop.mapreduce.TaskReport[] getTaskReports(JobID oldJobID, TaskType taskType) throws IOException {
    org.apache.hadoop.mapreduce.v2.api.records.JobId jobId = TypeConverter.toYarn(oldJobID);
    GetTaskReportsRequest request = recordFactory.newRecordInstance(GetTaskReportsRequest.class);
    request.setJobId(jobId);
    request.setTaskType(TypeConverter.toYarn(taskType));
    List<org.apache.hadoop.mapreduce.v2.api.records.TaskReport> taskReports = ((GetTaskReportsResponse) invoke("getTaskReports", GetTaskReportsRequest.class, request)).getTaskReportList();
    return TypeConverter.fromYarn(taskReports).toArray(new org.apache.hadoop.mapreduce.TaskReport[0]);
}
Also used : GetTaskReportsRequest(org.apache.hadoop.mapreduce.v2.api.protocolrecords.GetTaskReportsRequest) GetTaskReportsResponse(org.apache.hadoop.mapreduce.v2.api.protocolrecords.GetTaskReportsResponse)

Example 2 with GetTaskReportsResponse

use of org.apache.hadoop.mapreduce.v2.api.protocolrecords.GetTaskReportsResponse in project hadoop by apache.

the class NotRunningJob method getTaskReports.

@Override
public GetTaskReportsResponse getTaskReports(GetTaskReportsRequest request) throws IOException {
    GetTaskReportsResponse resp = recordFactory.newRecordInstance(GetTaskReportsResponse.class);
    resp.addAllTaskReports(new ArrayList<TaskReport>());
    return resp;
}
Also used : TaskReport(org.apache.hadoop.mapreduce.v2.api.records.TaskReport) GetTaskReportsResponse(org.apache.hadoop.mapreduce.v2.api.protocolrecords.GetTaskReportsResponse)

Example 3 with GetTaskReportsResponse

use of org.apache.hadoop.mapreduce.v2.api.protocolrecords.GetTaskReportsResponse in project tez by apache.

the class NotRunningJob method getTaskReports.

@Override
public GetTaskReportsResponse getTaskReports(GetTaskReportsRequest request) throws IOException {
    GetTaskReportsResponse resp = recordFactory.newRecordInstance(GetTaskReportsResponse.class);
    resp.addAllTaskReports(new ArrayList<TaskReport>());
    return resp;
}
Also used : TaskReport(org.apache.hadoop.mapreduce.v2.api.records.TaskReport) GetTaskReportsResponse(org.apache.hadoop.mapreduce.v2.api.protocolrecords.GetTaskReportsResponse)

Aggregations

GetTaskReportsResponse (org.apache.hadoop.mapreduce.v2.api.protocolrecords.GetTaskReportsResponse)3 TaskReport (org.apache.hadoop.mapreduce.v2.api.records.TaskReport)2 GetTaskReportsRequest (org.apache.hadoop.mapreduce.v2.api.protocolrecords.GetTaskReportsRequest)1