Example usage for org.apache.hadoop.mapreduce.v2.api.protocolrecords GetJobReportRequest getJobId

List of usage examples for org.apache.hadoop.mapreduce.v2.api.protocolrecords GetJobReportRequest getJobId

Introduction

In this page you can find the example usage for org.apache.hadoop.mapreduce.v2.api.protocolrecords GetJobReportRequest getJobId.

Prototype

public abstract JobId getJobId();

Source Link

Usage

From source file:org.apache.tez.mapreduce.client.NotRunningJob.java

License:Apache License

@Override
public GetJobReportResponse getJobReport(GetJobReportRequest request) throws IOException {
    JobReport jobReport = recordFactory.newRecordInstance(JobReport.class);
    jobReport.setJobId(request.getJobId());
    jobReport.setJobState(jobState);/*from   w w w .j  a  v a  2s  .  co m*/
    jobReport.setUser(applicationReport.getUser());
    jobReport.setStartTime(applicationReport.getStartTime());
    jobReport.setDiagnostics(applicationReport.getDiagnostics());
    jobReport.setJobName(applicationReport.getName());
    jobReport.setTrackingUrl(applicationReport.getTrackingUrl());
    jobReport.setFinishTime(applicationReport.getFinishTime());

    GetJobReportResponse resp = recordFactory.newRecordInstance(GetJobReportResponse.class);
    resp.setJobReport(jobReport);
    return resp;
}