org.apache.hadoop.mapreduce.v2.api.protocolrecords.GetTaskReportsResponse Java Examples
The following examples show how to use
org.apache.hadoop.mapreduce.v2.api.protocolrecords.GetTaskReportsResponse.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ClientServiceDelegate.java From hadoop with Apache License 2.0 | 6 votes |
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]); }
Example #2
Source File: ClientServiceDelegate.java From big-c with Apache License 2.0 | 6 votes |
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]); }
Example #3
Source File: MRClientService.java From hadoop with Apache License 2.0 | 6 votes |
@Override public GetTaskReportsResponse getTaskReports( GetTaskReportsRequest request) throws IOException { JobId jobId = request.getJobId(); TaskType taskType = request.getTaskType(); GetTaskReportsResponse response = recordFactory.newRecordInstance(GetTaskReportsResponse.class); Job job = verifyAndGetJob(jobId, JobACL.VIEW_JOB, true); Collection<Task> tasks = job.getTasks(taskType).values(); LOG.info("Getting task report for " + taskType + " " + jobId + ". Report-size will be " + tasks.size()); // Take lock to allow only one call, otherwise heap will blow up because // of counters in the report when there are multiple callers. synchronized (getTaskReportsLock) { for (Task task : tasks) { response.addTaskReport(task.getReport()); } } return response; }
Example #4
Source File: MRClientService.java From big-c with Apache License 2.0 | 6 votes |
@Override public GetTaskReportsResponse getTaskReports( GetTaskReportsRequest request) throws IOException { JobId jobId = request.getJobId(); TaskType taskType = request.getTaskType(); GetTaskReportsResponse response = recordFactory.newRecordInstance(GetTaskReportsResponse.class); Job job = verifyAndGetJob(jobId, JobACL.VIEW_JOB, true); Collection<Task> tasks = job.getTasks(taskType).values(); LOG.info("Getting task report for " + taskType + " " + jobId + ". Report-size will be " + tasks.size()); // Take lock to allow only one call, otherwise heap will blow up because // of counters in the report when there are multiple callers. synchronized (getTaskReportsLock) { for (Task task : tasks) { response.addTaskReport(task.getReport()); } } return response; }
Example #5
Source File: NotRunningJob.java From big-c with Apache License 2.0 | 5 votes |
@Override public GetTaskReportsResponse getTaskReports(GetTaskReportsRequest request) throws IOException { GetTaskReportsResponse resp = recordFactory.newRecordInstance(GetTaskReportsResponse.class); resp.addAllTaskReports(new ArrayList<TaskReport>()); return resp; }
Example #6
Source File: NotRunningJob.java From tez with Apache License 2.0 | 5 votes |
@Override public GetTaskReportsResponse getTaskReports(GetTaskReportsRequest request) throws IOException { GetTaskReportsResponse resp = recordFactory.newRecordInstance(GetTaskReportsResponse.class); resp.addAllTaskReports(new ArrayList<TaskReport>()); return resp; }
Example #7
Source File: NotRunningJob.java From incubator-tez with Apache License 2.0 | 5 votes |
@Override public GetTaskReportsResponse getTaskReports(GetTaskReportsRequest request) throws IOException { GetTaskReportsResponse resp = recordFactory.newRecordInstance(GetTaskReportsResponse.class); resp.addAllTaskReports(new ArrayList<TaskReport>()); return resp; }
Example #8
Source File: HistoryClientService.java From big-c with Apache License 2.0 | 5 votes |
@Override public GetTaskReportsResponse getTaskReports(GetTaskReportsRequest request) throws IOException { JobId jobId = request.getJobId(); TaskType taskType = request.getTaskType(); GetTaskReportsResponse response = recordFactory.newRecordInstance(GetTaskReportsResponse.class); Job job = verifyAndGetJob(jobId, true); Collection<Task> tasks = job.getTasks(taskType).values(); for (Task task : tasks) { response.addTaskReport(task.getReport()); } return response; }
Example #9
Source File: MRClientProtocolPBClientImpl.java From big-c with Apache License 2.0 | 5 votes |
@Override public GetTaskReportsResponse getTaskReports(GetTaskReportsRequest request) throws IOException { GetTaskReportsRequestProto requestProto = ((GetTaskReportsRequestPBImpl)request).getProto(); try { return new GetTaskReportsResponsePBImpl(proxy.getTaskReports(null, requestProto)); } catch (ServiceException e) { throw unwrapAndThrowException(e); } }
Example #10
Source File: MRClientProtocolPBServiceImpl.java From big-c with Apache License 2.0 | 5 votes |
@Override public GetTaskReportsResponseProto getTaskReports(RpcController controller, GetTaskReportsRequestProto proto) throws ServiceException { GetTaskReportsRequest request = new GetTaskReportsRequestPBImpl(proto); try { GetTaskReportsResponse response = real.getTaskReports(request); return ((GetTaskReportsResponsePBImpl)response).getProto(); } catch (IOException e) { throw new ServiceException(e); } }
Example #11
Source File: HistoryClientService.java From hadoop with Apache License 2.0 | 5 votes |
@Override public GetTaskReportsResponse getTaskReports(GetTaskReportsRequest request) throws IOException { JobId jobId = request.getJobId(); TaskType taskType = request.getTaskType(); GetTaskReportsResponse response = recordFactory.newRecordInstance(GetTaskReportsResponse.class); Job job = verifyAndGetJob(jobId, true); Collection<Task> tasks = job.getTasks(taskType).values(); for (Task task : tasks) { response.addTaskReport(task.getReport()); } return response; }
Example #12
Source File: MRClientProtocolPBClientImpl.java From hadoop with Apache License 2.0 | 5 votes |
@Override public GetTaskReportsResponse getTaskReports(GetTaskReportsRequest request) throws IOException { GetTaskReportsRequestProto requestProto = ((GetTaskReportsRequestPBImpl)request).getProto(); try { return new GetTaskReportsResponsePBImpl(proxy.getTaskReports(null, requestProto)); } catch (ServiceException e) { throw unwrapAndThrowException(e); } }
Example #13
Source File: MRClientProtocolPBServiceImpl.java From hadoop with Apache License 2.0 | 5 votes |
@Override public GetTaskReportsResponseProto getTaskReports(RpcController controller, GetTaskReportsRequestProto proto) throws ServiceException { GetTaskReportsRequest request = new GetTaskReportsRequestPBImpl(proto); try { GetTaskReportsResponse response = real.getTaskReports(request); return ((GetTaskReportsResponsePBImpl)response).getProto(); } catch (IOException e) { throw new ServiceException(e); } }
Example #14
Source File: NotRunningJob.java From hadoop with Apache License 2.0 | 5 votes |
@Override public GetTaskReportsResponse getTaskReports(GetTaskReportsRequest request) throws IOException { GetTaskReportsResponse resp = recordFactory.newRecordInstance(GetTaskReportsResponse.class); resp.addAllTaskReports(new ArrayList<TaskReport>()); return resp; }
Example #15
Source File: TestRPCFactories.java From hadoop with Apache License 2.0 | 4 votes |
@Override public GetTaskReportsResponse getTaskReports(GetTaskReportsRequest request) throws IOException { return null; }
Example #16
Source File: TestClientRedirect.java From big-c with Apache License 2.0 | 4 votes |
@Override public GetTaskReportsResponse getTaskReports(GetTaskReportsRequest request) throws IOException { return null; }
Example #17
Source File: TestRPCFactories.java From big-c with Apache License 2.0 | 4 votes |
@Override public GetTaskReportsResponse getTaskReports(GetTaskReportsRequest request) throws IOException { return null; }
Example #18
Source File: TestClientRedirect.java From hadoop with Apache License 2.0 | 4 votes |
@Override public GetTaskReportsResponse getTaskReports(GetTaskReportsRequest request) throws IOException { return null; }
Example #19
Source File: MRClientProtocol.java From big-c with Apache License 2.0 | votes |
public GetTaskReportsResponse getTaskReports(GetTaskReportsRequest request) throws IOException;
Example #20
Source File: MRClientProtocol.java From hadoop with Apache License 2.0 | votes |
public GetTaskReportsResponse getTaskReports(GetTaskReportsRequest request) throws IOException;