Java 类org.apache.hadoop.mapreduce.v2.api.protocolrecords.GetDiagnosticsRequest 实例源码

项目:hadoop    文件:ClientServiceDelegate.java   
public String[] getTaskDiagnostics(org.apache.hadoop.mapreduce.TaskAttemptID arg0)
    throws IOException, InterruptedException {

  org.apache.hadoop.mapreduce.v2.api.records.TaskAttemptId attemptID = TypeConverter
      .toYarn(arg0);
  GetDiagnosticsRequest request = recordFactory
      .newRecordInstance(GetDiagnosticsRequest.class);
  request.setTaskAttemptId(attemptID);
  List<String> list = ((GetDiagnosticsResponse) invoke("getDiagnostics",
      GetDiagnosticsRequest.class, request)).getDiagnosticsList();
  String[] result = new String[list.size()];
  int i = 0;
  for (String c : list) {
    result[i++] = c.toString();
  }
  return result;
}
项目:aliyun-oss-hadoop-fs    文件:ClientServiceDelegate.java   
public String[] getTaskDiagnostics(org.apache.hadoop.mapreduce.TaskAttemptID arg0)
    throws IOException, InterruptedException {

  org.apache.hadoop.mapreduce.v2.api.records.TaskAttemptId attemptID = TypeConverter
      .toYarn(arg0);
  GetDiagnosticsRequest request = recordFactory
      .newRecordInstance(GetDiagnosticsRequest.class);
  request.setTaskAttemptId(attemptID);
  List<String> list = ((GetDiagnosticsResponse) invoke("getDiagnostics",
      GetDiagnosticsRequest.class, request)).getDiagnosticsList();
  String[] result = new String[list.size()];
  int i = 0;
  for (String c : list) {
    result[i++] = c.toString();
  }
  return result;
}
项目:big-c    文件:ClientServiceDelegate.java   
public String[] getTaskDiagnostics(org.apache.hadoop.mapreduce.TaskAttemptID arg0)
    throws IOException, InterruptedException {

  org.apache.hadoop.mapreduce.v2.api.records.TaskAttemptId attemptID = TypeConverter
      .toYarn(arg0);
  GetDiagnosticsRequest request = recordFactory
      .newRecordInstance(GetDiagnosticsRequest.class);
  request.setTaskAttemptId(attemptID);
  List<String> list = ((GetDiagnosticsResponse) invoke("getDiagnostics",
      GetDiagnosticsRequest.class, request)).getDiagnosticsList();
  String[] result = new String[list.size()];
  int i = 0;
  for (String c : list) {
    result[i++] = c.toString();
  }
  return result;
}
项目:hadoop-2.6.0-cdh5.4.3    文件:ClientServiceDelegate.java   
public String[] getTaskDiagnostics(org.apache.hadoop.mapreduce.TaskAttemptID arg0)
    throws IOException, InterruptedException {

  org.apache.hadoop.mapreduce.v2.api.records.TaskAttemptId attemptID = TypeConverter
      .toYarn(arg0);
  GetDiagnosticsRequest request = recordFactory
      .newRecordInstance(GetDiagnosticsRequest.class);
  request.setTaskAttemptId(attemptID);
  List<String> list = ((GetDiagnosticsResponse) invoke("getDiagnostics",
      GetDiagnosticsRequest.class, request)).getDiagnosticsList();
  String[] result = new String[list.size()];
  int i = 0;
  for (String c : list) {
    result[i++] = c.toString();
  }
  return result;
}
项目:hadoop-plus    文件:ClientServiceDelegate.java   
public String[] getTaskDiagnostics(org.apache.hadoop.mapreduce.TaskAttemptID arg0)
    throws IOException, InterruptedException {

  org.apache.hadoop.mapreduce.v2.api.records.TaskAttemptId attemptID = TypeConverter
      .toYarn(arg0);
  GetDiagnosticsRequest request = recordFactory
      .newRecordInstance(GetDiagnosticsRequest.class);
  request.setTaskAttemptId(attemptID);
  List<String> list = ((GetDiagnosticsResponse) invoke("getDiagnostics",
      GetDiagnosticsRequest.class, request)).getDiagnosticsList();
  String[] result = new String[list.size()];
  int i = 0;
  for (String c : list) {
    result[i++] = c.toString();
  }
  return result;
}
项目:FlexMap    文件:ClientServiceDelegate.java   
public String[] getTaskDiagnostics(org.apache.hadoop.mapreduce.TaskAttemptID arg0)
    throws IOException, InterruptedException {

  org.apache.hadoop.mapreduce.v2.api.records.TaskAttemptId attemptID = TypeConverter
      .toYarn(arg0);
  GetDiagnosticsRequest request = recordFactory
      .newRecordInstance(GetDiagnosticsRequest.class);
  request.setTaskAttemptId(attemptID);
  List<String> list = ((GetDiagnosticsResponse) invoke("getDiagnostics",
      GetDiagnosticsRequest.class, request)).getDiagnosticsList();
  String[] result = new String[list.size()];
  int i = 0;
  for (String c : list) {
    result[i++] = c.toString();
  }
  return result;
}
项目:hops    文件:ClientServiceDelegate.java   
public String[] getTaskDiagnostics(org.apache.hadoop.mapreduce.TaskAttemptID arg0)
    throws IOException, InterruptedException {

  org.apache.hadoop.mapreduce.v2.api.records.TaskAttemptId attemptID = TypeConverter
      .toYarn(arg0);
  GetDiagnosticsRequest request = recordFactory
      .newRecordInstance(GetDiagnosticsRequest.class);
  request.setTaskAttemptId(attemptID);
  List<String> list = ((GetDiagnosticsResponse) invoke("getDiagnostics",
      GetDiagnosticsRequest.class, request)).getDiagnosticsList();
  String[] result = new String[list.size()];
  int i = 0;
  for (String c : list) {
    result[i++] = c.toString();
  }
  return result;
}
项目:hadoop-TCP    文件:ClientServiceDelegate.java   
public String[] getTaskDiagnostics(org.apache.hadoop.mapreduce.TaskAttemptID arg0)
    throws IOException, InterruptedException {

  org.apache.hadoop.mapreduce.v2.api.records.TaskAttemptId attemptID = TypeConverter
      .toYarn(arg0);
  GetDiagnosticsRequest request = recordFactory
      .newRecordInstance(GetDiagnosticsRequest.class);
  request.setTaskAttemptId(attemptID);
  List<String> list = ((GetDiagnosticsResponse) invoke("getDiagnostics",
      GetDiagnosticsRequest.class, request)).getDiagnosticsList();
  String[] result = new String[list.size()];
  int i = 0;
  for (String c : list) {
    result[i++] = c.toString();
  }
  return result;
}
项目:hardfs    文件:ClientServiceDelegate.java   
public String[] getTaskDiagnostics(org.apache.hadoop.mapreduce.TaskAttemptID arg0)
    throws IOException, InterruptedException {

  org.apache.hadoop.mapreduce.v2.api.records.TaskAttemptId attemptID = TypeConverter
      .toYarn(arg0);
  GetDiagnosticsRequest request = recordFactory
      .newRecordInstance(GetDiagnosticsRequest.class);
  request.setTaskAttemptId(attemptID);
  List<String> list = ((GetDiagnosticsResponse) invoke("getDiagnostics",
      GetDiagnosticsRequest.class, request)).getDiagnosticsList();
  String[] result = new String[list.size()];
  int i = 0;
  for (String c : list) {
    result[i++] = c.toString();
  }
  return result;
}
项目:hadoop-on-lustre2    文件:ClientServiceDelegate.java   
public String[] getTaskDiagnostics(org.apache.hadoop.mapreduce.TaskAttemptID arg0)
    throws IOException, InterruptedException {

  org.apache.hadoop.mapreduce.v2.api.records.TaskAttemptId attemptID = TypeConverter
      .toYarn(arg0);
  GetDiagnosticsRequest request = recordFactory
      .newRecordInstance(GetDiagnosticsRequest.class);
  request.setTaskAttemptId(attemptID);
  List<String> list = ((GetDiagnosticsResponse) invoke("getDiagnostics",
      GetDiagnosticsRequest.class, request)).getDiagnosticsList();
  String[] result = new String[list.size()];
  int i = 0;
  for (String c : list) {
    result[i++] = c.toString();
  }
  return result;
}
项目:hadoop    文件:MRClientService.java   
@Override
public GetDiagnosticsResponse getDiagnostics(
    GetDiagnosticsRequest request) throws IOException {
  TaskAttemptId taskAttemptId = request.getTaskAttemptId();

  GetDiagnosticsResponse response = 
    recordFactory.newRecordInstance(GetDiagnosticsResponse.class);
  response.addAllDiagnostics(verifyAndGetAttempt(taskAttemptId,
      JobACL.VIEW_JOB).getDiagnostics());
  return response;
}
项目:hadoop    文件:NotRunningJob.java   
@Override
public GetDiagnosticsResponse getDiagnostics(GetDiagnosticsRequest request)
    throws IOException {
  GetDiagnosticsResponse resp =
    recordFactory.newRecordInstance(GetDiagnosticsResponse.class);
  resp.addDiagnostics("");
  return resp;
}
项目:hadoop    文件:MRClientProtocolPBServiceImpl.java   
@Override
public GetDiagnosticsResponseProto getDiagnostics(RpcController controller,
    GetDiagnosticsRequestProto proto) throws ServiceException {
  GetDiagnosticsRequest request = new GetDiagnosticsRequestPBImpl(proto);
  try {
    GetDiagnosticsResponse response = real.getDiagnostics(request);
    return ((GetDiagnosticsResponsePBImpl)response).getProto();
  } catch (IOException e) {
    throw new ServiceException(e);
  }
}
项目:hadoop    文件:MRClientProtocolPBClientImpl.java   
@Override
public GetDiagnosticsResponse getDiagnostics(GetDiagnosticsRequest request)
    throws IOException {
  GetDiagnosticsRequestProto requestProto = ((GetDiagnosticsRequestPBImpl)request).getProto();
  try {
    return new GetDiagnosticsResponsePBImpl(proxy.getDiagnostics(null, requestProto));
  } catch (ServiceException e) {
    throw unwrapAndThrowException(e);
  }
}
项目:hadoop    文件:HistoryClientService.java   
@Override
public GetDiagnosticsResponse getDiagnostics(GetDiagnosticsRequest request)
    throws IOException {
  TaskAttemptId taskAttemptId = request.getTaskAttemptId();

  Job job = verifyAndGetJob(taskAttemptId.getTaskId().getJobId(), true);

  GetDiagnosticsResponse response = recordFactory.newRecordInstance(GetDiagnosticsResponse.class);
  response.addAllDiagnostics(job.getTask(taskAttemptId.getTaskId()).getAttempt(taskAttemptId).getDiagnostics());
  return response;
}
项目:aliyun-oss-hadoop-fs    文件:MRClientService.java   
@Override
public GetDiagnosticsResponse getDiagnostics(
    GetDiagnosticsRequest request) throws IOException {
  TaskAttemptId taskAttemptId = request.getTaskAttemptId();

  GetDiagnosticsResponse response = 
    recordFactory.newRecordInstance(GetDiagnosticsResponse.class);
  response.addAllDiagnostics(verifyAndGetAttempt(taskAttemptId,
      JobACL.VIEW_JOB).getDiagnostics());
  return response;
}
项目:aliyun-oss-hadoop-fs    文件:NotRunningJob.java   
@Override
public GetDiagnosticsResponse getDiagnostics(GetDiagnosticsRequest request)
    throws IOException {
  GetDiagnosticsResponse resp =
    recordFactory.newRecordInstance(GetDiagnosticsResponse.class);
  resp.addDiagnostics("");
  return resp;
}
项目:aliyun-oss-hadoop-fs    文件:MRClientProtocolPBServiceImpl.java   
@Override
public GetDiagnosticsResponseProto getDiagnostics(RpcController controller,
    GetDiagnosticsRequestProto proto) throws ServiceException {
  GetDiagnosticsRequest request = new GetDiagnosticsRequestPBImpl(proto);
  try {
    GetDiagnosticsResponse response = real.getDiagnostics(request);
    return ((GetDiagnosticsResponsePBImpl)response).getProto();
  } catch (IOException e) {
    throw new ServiceException(e);
  }
}
项目:aliyun-oss-hadoop-fs    文件:MRClientProtocolPBClientImpl.java   
@Override
public GetDiagnosticsResponse getDiagnostics(GetDiagnosticsRequest request)
    throws IOException {
  GetDiagnosticsRequestProto requestProto = ((GetDiagnosticsRequestPBImpl)request).getProto();
  try {
    return new GetDiagnosticsResponsePBImpl(proxy.getDiagnostics(null, requestProto));
  } catch (ServiceException e) {
    throw unwrapAndThrowException(e);
  }
}
项目:aliyun-oss-hadoop-fs    文件:HistoryClientService.java   
@Override
public GetDiagnosticsResponse getDiagnostics(GetDiagnosticsRequest request)
    throws IOException {
  TaskAttemptId taskAttemptId = request.getTaskAttemptId();

  Job job = verifyAndGetJob(taskAttemptId.getTaskId().getJobId(), true);

  GetDiagnosticsResponse response = recordFactory.newRecordInstance(GetDiagnosticsResponse.class);
  response.addAllDiagnostics(job.getTask(taskAttemptId.getTaskId()).getAttempt(taskAttemptId).getDiagnostics());
  return response;
}
项目:big-c    文件:MRClientService.java   
@Override
public GetDiagnosticsResponse getDiagnostics(
    GetDiagnosticsRequest request) throws IOException {
  TaskAttemptId taskAttemptId = request.getTaskAttemptId();

  GetDiagnosticsResponse response = 
    recordFactory.newRecordInstance(GetDiagnosticsResponse.class);
  response.addAllDiagnostics(verifyAndGetAttempt(taskAttemptId,
      JobACL.VIEW_JOB).getDiagnostics());
  return response;
}
项目:big-c    文件:NotRunningJob.java   
@Override
public GetDiagnosticsResponse getDiagnostics(GetDiagnosticsRequest request)
    throws IOException {
  GetDiagnosticsResponse resp =
    recordFactory.newRecordInstance(GetDiagnosticsResponse.class);
  resp.addDiagnostics("");
  return resp;
}
项目:big-c    文件:MRClientProtocolPBServiceImpl.java   
@Override
public GetDiagnosticsResponseProto getDiagnostics(RpcController controller,
    GetDiagnosticsRequestProto proto) throws ServiceException {
  GetDiagnosticsRequest request = new GetDiagnosticsRequestPBImpl(proto);
  try {
    GetDiagnosticsResponse response = real.getDiagnostics(request);
    return ((GetDiagnosticsResponsePBImpl)response).getProto();
  } catch (IOException e) {
    throw new ServiceException(e);
  }
}
项目:big-c    文件:MRClientProtocolPBClientImpl.java   
@Override
public GetDiagnosticsResponse getDiagnostics(GetDiagnosticsRequest request)
    throws IOException {
  GetDiagnosticsRequestProto requestProto = ((GetDiagnosticsRequestPBImpl)request).getProto();
  try {
    return new GetDiagnosticsResponsePBImpl(proxy.getDiagnostics(null, requestProto));
  } catch (ServiceException e) {
    throw unwrapAndThrowException(e);
  }
}
项目:big-c    文件:HistoryClientService.java   
@Override
public GetDiagnosticsResponse getDiagnostics(GetDiagnosticsRequest request)
    throws IOException {
  TaskAttemptId taskAttemptId = request.getTaskAttemptId();

  Job job = verifyAndGetJob(taskAttemptId.getTaskId().getJobId(), true);

  GetDiagnosticsResponse response = recordFactory.newRecordInstance(GetDiagnosticsResponse.class);
  response.addAllDiagnostics(job.getTask(taskAttemptId.getTaskId()).getAttempt(taskAttemptId).getDiagnostics());
  return response;
}
项目:hadoop-2.6.0-cdh5.4.3    文件:MRClientService.java   
@Override
public GetDiagnosticsResponse getDiagnostics(
    GetDiagnosticsRequest request) throws IOException {
  TaskAttemptId taskAttemptId = request.getTaskAttemptId();

  GetDiagnosticsResponse response = 
    recordFactory.newRecordInstance(GetDiagnosticsResponse.class);
  response.addAllDiagnostics(verifyAndGetAttempt(taskAttemptId,
      JobACL.VIEW_JOB).getDiagnostics());
  return response;
}
项目:hadoop-2.6.0-cdh5.4.3    文件:NotRunningJob.java   
@Override
public GetDiagnosticsResponse getDiagnostics(GetDiagnosticsRequest request)
    throws IOException {
  GetDiagnosticsResponse resp =
    recordFactory.newRecordInstance(GetDiagnosticsResponse.class);
  resp.addDiagnostics("");
  return resp;
}
项目:hadoop-2.6.0-cdh5.4.3    文件:MRClientProtocolPBServiceImpl.java   
@Override
public GetDiagnosticsResponseProto getDiagnostics(RpcController controller,
    GetDiagnosticsRequestProto proto) throws ServiceException {
  GetDiagnosticsRequest request = new GetDiagnosticsRequestPBImpl(proto);
  try {
    GetDiagnosticsResponse response = real.getDiagnostics(request);
    return ((GetDiagnosticsResponsePBImpl)response).getProto();
  } catch (IOException e) {
    throw new ServiceException(e);
  }
}
项目:hadoop-2.6.0-cdh5.4.3    文件:MRClientProtocolPBClientImpl.java   
@Override
public GetDiagnosticsResponse getDiagnostics(GetDiagnosticsRequest request)
    throws IOException {
  GetDiagnosticsRequestProto requestProto = ((GetDiagnosticsRequestPBImpl)request).getProto();
  try {
    return new GetDiagnosticsResponsePBImpl(proxy.getDiagnostics(null, requestProto));
  } catch (ServiceException e) {
    throw unwrapAndThrowException(e);
  }
}
项目:hadoop-2.6.0-cdh5.4.3    文件:HistoryClientService.java   
@Override
public GetDiagnosticsResponse getDiagnostics(GetDiagnosticsRequest request)
    throws IOException {
  TaskAttemptId taskAttemptId = request.getTaskAttemptId();

  Job job = verifyAndGetJob(taskAttemptId.getTaskId().getJobId());

  GetDiagnosticsResponse response = recordFactory.newRecordInstance(GetDiagnosticsResponse.class);
  response.addAllDiagnostics(job.getTask(taskAttemptId.getTaskId()).getAttempt(taskAttemptId).getDiagnostics());
  return response;
}
项目:hadoop-plus    文件:MRClientService.java   
@Override
public GetDiagnosticsResponse getDiagnostics(
    GetDiagnosticsRequest request) throws IOException {
  TaskAttemptId taskAttemptId = request.getTaskAttemptId();

  GetDiagnosticsResponse response = 
    recordFactory.newRecordInstance(GetDiagnosticsResponse.class);
  response.addAllDiagnostics(
      verifyAndGetAttempt(taskAttemptId, false).getDiagnostics());
  return response;
}
项目:hadoop-plus    文件:NotRunningJob.java   
@Override
public GetDiagnosticsResponse getDiagnostics(GetDiagnosticsRequest request)
    throws IOException {
  GetDiagnosticsResponse resp =
    recordFactory.newRecordInstance(GetDiagnosticsResponse.class);
  resp.addDiagnostics("");
  return resp;
}
项目:hadoop-plus    文件:MRClientProtocolPBServiceImpl.java   
@Override
public GetDiagnosticsResponseProto getDiagnostics(RpcController controller,
    GetDiagnosticsRequestProto proto) throws ServiceException {
  GetDiagnosticsRequest request = new GetDiagnosticsRequestPBImpl(proto);
  try {
    GetDiagnosticsResponse response = real.getDiagnostics(request);
    return ((GetDiagnosticsResponsePBImpl)response).getProto();
  } catch (IOException e) {
    throw new ServiceException(e);
  }
}
项目:hadoop-plus    文件:MRClientProtocolPBClientImpl.java   
@Override
public GetDiagnosticsResponse getDiagnostics(GetDiagnosticsRequest request)
    throws IOException {
  GetDiagnosticsRequestProto requestProto = ((GetDiagnosticsRequestPBImpl)request).getProto();
  try {
    return new GetDiagnosticsResponsePBImpl(proxy.getDiagnostics(null, requestProto));
  } catch (ServiceException e) {
    throw unwrapAndThrowException(e);
  }
}
项目:hadoop-plus    文件:HistoryClientService.java   
@Override
public GetDiagnosticsResponse getDiagnostics(GetDiagnosticsRequest request)
    throws IOException {
  TaskAttemptId taskAttemptId = request.getTaskAttemptId();

  Job job = verifyAndGetJob(taskAttemptId.getTaskId().getJobId());

  GetDiagnosticsResponse response = recordFactory.newRecordInstance(GetDiagnosticsResponse.class);
  response.addAllDiagnostics(job.getTask(taskAttemptId.getTaskId()).getAttempt(taskAttemptId).getDiagnostics());
  return response;
}
项目:FlexMap    文件:MRClientService.java   
@Override
public GetDiagnosticsResponse getDiagnostics(
    GetDiagnosticsRequest request) throws IOException {
  TaskAttemptId taskAttemptId = request.getTaskAttemptId();

  GetDiagnosticsResponse response = 
    recordFactory.newRecordInstance(GetDiagnosticsResponse.class);
  response.addAllDiagnostics(verifyAndGetAttempt(taskAttemptId,
      JobACL.VIEW_JOB).getDiagnostics());
  return response;
}
项目:FlexMap    文件:NotRunningJob.java   
@Override
public GetDiagnosticsResponse getDiagnostics(GetDiagnosticsRequest request)
    throws IOException {
  GetDiagnosticsResponse resp =
    recordFactory.newRecordInstance(GetDiagnosticsResponse.class);
  resp.addDiagnostics("");
  return resp;
}
项目:FlexMap    文件:MRClientProtocolPBServiceImpl.java   
@Override
public GetDiagnosticsResponseProto getDiagnostics(RpcController controller,
    GetDiagnosticsRequestProto proto) throws ServiceException {
  GetDiagnosticsRequest request = new GetDiagnosticsRequestPBImpl(proto);
  try {
    GetDiagnosticsResponse response = real.getDiagnostics(request);
    return ((GetDiagnosticsResponsePBImpl)response).getProto();
  } catch (IOException e) {
    throw new ServiceException(e);
  }
}
项目:FlexMap    文件:MRClientProtocolPBClientImpl.java   
@Override
public GetDiagnosticsResponse getDiagnostics(GetDiagnosticsRequest request)
    throws IOException {
  GetDiagnosticsRequestProto requestProto = ((GetDiagnosticsRequestPBImpl)request).getProto();
  try {
    return new GetDiagnosticsResponsePBImpl(proxy.getDiagnostics(null, requestProto));
  } catch (ServiceException e) {
    throw unwrapAndThrowException(e);
  }
}
项目:FlexMap    文件:HistoryClientService.java   
@Override
public GetDiagnosticsResponse getDiagnostics(GetDiagnosticsRequest request)
    throws IOException {
  TaskAttemptId taskAttemptId = request.getTaskAttemptId();

  Job job = verifyAndGetJob(taskAttemptId.getTaskId().getJobId());

  GetDiagnosticsResponse response = recordFactory.newRecordInstance(GetDiagnosticsResponse.class);
  response.addAllDiagnostics(job.getTask(taskAttemptId.getTaskId()).getAttempt(taskAttemptId).getDiagnostics());
  return response;
}