/** * Grab a handle to a job that is already known to the JobTracker. * * @return Status of the job, or null if not found. */ public JobStatus getJobStatus(JobID jobid) throws IOException { RunningJob rj = getJob(jobid); if(rj == null) { return null; } return rj.getJobStatus(); }
/** * Grab a handle to a job that is already known to the JobTracker. * * @return Profile of the job, or null if not found. */ public JobProfile getJobProfile(JobID jobid) throws IOException { RunningJob rj = getJob(jobid); if(rj == null) { return null; } JobStatus jobStatus = rj.getJobStatus(); return new JobProfile(jobStatus.getUsername(), jobStatus.getJobID(), jobStatus.getJobFile(), jobStatus.getTrackingUrl(), jobStatus.getJobName()); }
/** * Grab a handle to a job that is already known to the JobTracker. * * @return Status of the job, or null if not found. */ public JobStatus getJobStatus(JobID jobid) throws IOException { RunningJob rj = getJob(jobid); if(rj == null) { return null; } return rj.getJobStatus(); }
/** * Grab a handle to a job that is already known to the JobTracker. * * @return Status of the job, or null if not found. */ public JobStatus getJobStatus(JobID jobid) throws IOException { RunningJob rj = getJob(jobid); if(rj == null) { return null; } return rj.getJobStatus(); }
/** * Grab a handle to a job that is already known to the JobTracker. * * @return Status of the job, or null if not found. */ public JobStatus getJobStatus(JobID jobid) throws IOException { RunningJob rj = getJob(jobid); if(rj == null) { return null; } return rj.getJobStatus(); }
/** * Grab a handle to a job that is already known to the JobTracker. * * @return Status of the job, or null if not found. */ public JobStatus getJobStatus(JobID jobid) throws IOException { RunningJob rj = getJob(jobid); if(rj == null) { return null; } return rj.getJobStatus(); }
/** * Grab a handle to a job that is already known to the JobTracker. * * @return Profile of the job, or null if not found. */ public JobProfile getJobProfile(JobID jobid) throws IOException { RunningJob rj = getJob(jobid); if(rj == null) { return null; } JobStatus jobStatus = rj.getJobStatus(); return new JobProfile(jobStatus.getUsername(), jobStatus.getJobID(), jobStatus.getJobFile(), jobStatus.getTrackingUrl(), jobStatus.getJobName()); }
/** * Grab a handle to a job that is already known to the JobTracker. * * @return Profile of the job, or null if not found. */ public JobProfile getJobProfile(JobID jobid) throws IOException { RunningJob rj = getJob(jobid); if(rj == null) { return null; } JobStatus jobStatus = rj.getJobStatus(); return new JobProfile(jobStatus.getUsername(), jobStatus.getJobID(), jobStatus.getJobFile(), jobStatus.getTrackingUrl(), jobStatus.getJobName()); }
/** * Grab a handle to a job that is already known to the JobTracker. * * @return Profile of the job, or null if not found. */ public JobProfile getJobProfile(JobID jobid) throws IOException { RunningJob rj = getJob(jobid); if(rj == null) { return null; } JobStatus jobStatus = rj.getJobStatus(); return new JobProfile(jobStatus.getUsername(), jobStatus.getJobID(), jobStatus.getJobFile(), jobStatus.getTrackingUrl(), jobStatus.getJobName()); }
/** * Grab a handle to a job that is already known to the JobTracker. * * @return Profile of the job, or null if not found. */ public JobProfile getJobProfile(JobID jobid) throws IOException { RunningJob rj = getJob(jobid); if(rj == null) { return null; } JobStatus jobStatus = rj.getJobStatus(); return new JobProfile(jobStatus.getUsername(), jobStatus.getJobID(), jobStatus.getJobFile(), jobStatus.getTrackingUrl(), jobStatus.getJobName()); }
.getJobStatus().getJobID()); assertEquals("Expected matching startTimes", rj.getJobStatus() .getStartTime(), client.getJob(jobId).getJobStatus() .getStartTime()); } finally {
UtilsForTests.runJobSucceed(new JobConf(conf), inDir, outDir); Assert.assertEquals(JobStatus.SUCCEEDED, job.getJobStatus().getState().getValue()); TimelineEntities entities = ts.getEntities("MAPREDUCE_JOB", null, null, null, null, null, null, null, null, null); job = UtilsForTests.runJobSucceed(new JobConf(conf), inDir, outDir); Assert.assertEquals(JobStatus.SUCCEEDED, job.getJobStatus().getState().getValue()); entities = ts.getEntities("MAPREDUCE_JOB", null, null, null, null, null, null, null, null, null); UtilsForTests.runJobSucceed(new JobConf(conf), inDir, outDir); Assert.assertEquals(JobStatus.SUCCEEDED, job.getJobStatus().getState().getValue()); TimelineEntities entities = ts.getEntities("MAPREDUCE_JOB", null, null, null, null, null, null, null, null, null); job = UtilsForTests.runJobSucceed(new JobConf(conf), inDir, outDir); Assert.assertEquals(JobStatus.SUCCEEDED, job.getJobStatus().getState().getValue()); entities = ts.getEntities("MAPREDUCE_JOB", null, null, null, null, null, null, null, null, null);
UtilsForTests.runJobSucceed(new JobConf(conf), inDir, outDir); Assert.assertEquals(JobStatus.SUCCEEDED, job.getJobStatus().getState().getValue()); TimelineEntities entities = ts.getEntities("MAPREDUCE_JOB", null, null, null, null, null, null, null, null, null); job.getJobStatus().getState().getValue()); entities = ts.getEntities("MAPREDUCE_JOB", null, null, null, null, null, null, null, null, null);
.getJobStatus().getJobID()); assertEquals("Expected matching startTimes", rj.getJobStatus() .getStartTime(), client.getJob(jobId).getJobStatus().getStartTime()); } finally { if (fileSys != null) {