public static String toString(JobId jid) { return jid.toString(); }
public static String toString(JobId jid) { return jid.toString(); }
public static String toString(JobId jid) { return jid.toString(); }
public static String toString(JobId jid) { return jid.toString(); }
public static Path getStartJobCommitFile(Configuration conf, String user, JobId jobId) { Path startCommitFile = new Path(MRApps.getStagingAreaDir(conf, user), jobId.toString() + Path.SEPARATOR + "COMMIT_STARTED"); return startCommitFile; }
public static Path getEndJobCommitSuccessFile(Configuration conf, String user, JobId jobId) { Path endCommitFile = new Path(MRApps.getStagingAreaDir(conf, user), jobId.toString() + Path.SEPARATOR + "COMMIT_SUCCESS"); return endCommitFile; }
public static Path getEndJobCommitSuccessFile(Configuration conf, String user, JobId jobId) { Path endCommitFile = new Path(MRApps.getStagingAreaDir(conf, user), jobId.toString() + Path.SEPARATOR + "COMMIT_SUCCESS"); return endCommitFile; }
public static Path getEndJobCommitSuccessFile(Configuration conf, String user, JobId jobId) { Path endCommitFile = new Path(MRApps.getStagingAreaDir(conf, user), jobId.toString() + Path.SEPARATOR + "COMMIT_SUCCESS"); return endCommitFile; }
public static Path getEndJobCommitFailureFile(Configuration conf, String user, JobId jobId) { Path endCommitFile = new Path(MRApps.getStagingAreaDir(conf, user), jobId.toString() + Path.SEPARATOR + "COMMIT_FAIL"); return endCommitFile; }
public static Path getEndJobCommitFailureFile(Configuration conf, String user, JobId jobId) { Path endCommitFile = new Path(MRApps.getStagingAreaDir(conf, user), jobId.toString() + Path.SEPARATOR + "COMMIT_FAIL"); return endCommitFile; }
public static Path getStartJobCommitFile(Configuration conf, String user, JobId jobId) { Path startCommitFile = new Path(MRApps.getStagingAreaDir(conf, user), jobId.toString() + Path.SEPARATOR + "COMMIT_STARTED"); return startCommitFile; }
public static Path getStartJobCommitFile(Configuration conf, String user, JobId jobId) { Path startCommitFile = new Path(MRApps.getStagingAreaDir(conf, user), jobId.toString() + Path.SEPARATOR + "COMMIT_STARTED"); return startCommitFile; }
public static Path getEndJobCommitFailureFile(Configuration conf, String user, JobId jobId) { Path endCommitFile = new Path(MRApps.getStagingAreaDir(conf, user), jobId.toString() + Path.SEPARATOR + "COMMIT_FAIL"); return endCommitFile; }
public static Path getEndJobCommitFailureFile(Configuration conf, String user, JobId jobId) { Path endCommitFile = new Path(MRApps.getStagingAreaDir(conf, user), jobId.toString() + Path.SEPARATOR + "COMMIT_FAIL"); return endCommitFile; }
public static Path getStartJobCommitFile(Configuration conf, String user, JobId jobId) { Path startCommitFile = new Path(MRApps.getStagingAreaDir(conf, user), jobId.toString() + Path.SEPARATOR + "COMMIT_STARTED"); return startCommitFile; }
public static Path getEndJobCommitSuccessFile(Configuration conf, String user, JobId jobId) { Path endCommitFile = new Path(MRApps.getStagingAreaDir(conf, user), jobId.toString() + Path.SEPARATOR + "COMMIT_SUCCESS"); return endCommitFile; }
private org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntity createJobEntity(HistoryEvent event, long timestamp, JobId jobId, String entityType, boolean setCreatedTime) { org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntity entity = createBaseEntity(event, timestamp, entityType, setCreatedTime); entity.setId(jobId.toString()); return entity; }
private org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntity createJobEntity(JobId jobId) { org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntity entity = new org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntity(); entity.setId(jobId.toString()); entity.setType(MAPREDUCE_JOB_ENTITY_TYPE); return entity; }
private org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntity createTaskEntity(HistoryEvent event, long timestamp, String taskId, String entityType, String relatedJobEntity, JobId jobId, boolean setCreatedTime, long taskIdPrefix) { org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntity entity = createBaseEntity(event, timestamp, entityType, setCreatedTime); entity.setId(taskId); if (event.getEventType() == EventType.TASK_STARTED) { entity.addInfo("TASK_TYPE", ((TaskStartedEvent)event).getTaskType().toString()); } entity.addIsRelatedToEntity(relatedJobEntity, jobId.toString()); entity.setIdPrefix(taskIdPrefix); return entity; }
@Before public void before() { JobId mockJobId = mock(JobId.class); when(mockJobId.toString()).thenReturn("testJobId"); summary.setJobId(mockJobId); summary.setJobSubmitTime(2L); summary.setJobLaunchTime(3L); summary.setFirstMapTaskLaunchTime(4L); summary.setFirstReduceTaskLaunchTime(5L); summary.setJobFinishTime(6L); summary.setNumSucceededMaps(1); summary.setNumFailedMaps(0); summary.setNumSucceededReduces(1); summary.setNumFailedReduces(0); summary.setNumKilledMaps(0); summary.setNumKilledReduces(0); summary.setUser("testUser"); summary.setQueue("testQueue"); summary.setJobStatus("testJobStatus"); summary.setMapSlotSeconds(7); summary.setReduceSlotSeconds(8); summary.setJobName("testName"); }