Example usage for org.apache.hadoop.mapred JobStatus getJobName

List of usage examples for org.apache.hadoop.mapred JobStatus getJobName

Introduction

In this page you can find the example usage for org.apache.hadoop.mapred JobStatus getJobName.

Prototype

public String getJobName() 

Source Link

Document

Get the user-specified job name.

Usage

From source file:co.cask.cdap.app.mapreduce.MRJobClient.java

License:Apache License

private JobStatus findJobForRunId(JobStatus[] jobs, Id.Run runId) throws NotFoundException {
    for (JobStatus job : jobs) {
        if (job.getJobName().startsWith(runId.getId())) {
            return job;
        }// w  w  w.ja  v  a 2 s .com
    }
    throw new NotFoundException(runId);
}