@Override
  public Job getJobStatus(JobInstance jobInstance)
      throws IOException, InterruptedException {
    Job info = new Job(jobInstance.getJobName(), jobInstance.getJobId());
    getJobStatuses(Collections.singletonList(info));
    return info;
  }
An implementation of the {@link JobStatusProvider} that retrieves
the job status from the YARN REST api.
samza-rest/src/main/java/org/apache/samza/rest/proxy/job/YarnRestJobStatusProvider.java