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]);
}
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;
}
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;
}
Aggregations