Java Code Examples for org.apache.hadoop.mapreduce.v2.api.records.JobId#getId()
The following examples show how to use
org.apache.hadoop.mapreduce.v2.api.records.JobId#getId() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: TestJobHistoryEventHandler.java From hadoop with Apache License 2.0 | 4 votes |
private JobHistoryEvent getEventToEnqueue(JobId jobId) { HistoryEvent toReturn = new JobStatusChangedEvent(new JobID(Integer.toString(jobId.getId()), jobId.getId()), "change status"); return new JobHistoryEvent(jobId, toReturn); }
Example 2
Source File: TypeConverter.java From hadoop with Apache License 2.0 | 4 votes |
public static org.apache.hadoop.mapred.JobID fromYarn(JobId id) { String identifier = fromClusterTimeStamp(id.getAppId().getClusterTimestamp()); return new org.apache.hadoop.mapred.JobID(identifier, id.getId()); }
Example 3
Source File: TestJobHistoryEventHandler.java From big-c with Apache License 2.0 | 4 votes |
private JobHistoryEvent getEventToEnqueue(JobId jobId) { HistoryEvent toReturn = new JobStatusChangedEvent(new JobID(Integer.toString(jobId.getId()), jobId.getId()), "change status"); return new JobHistoryEvent(jobId, toReturn); }
Example 4
Source File: TypeConverter.java From big-c with Apache License 2.0 | 4 votes |
public static org.apache.hadoop.mapred.JobID fromYarn(JobId id) { String identifier = fromClusterTimeStamp(id.getAppId().getClusterTimestamp()); return new org.apache.hadoop.mapred.JobID(identifier, id.getId()); }
Example 5
Source File: YarnJobId.java From jumbune with GNU Lesser General Public License v3.0 | 4 votes |
public YarnJobId(JobId jobId){ prefix = String.valueOf(jobId.getAppId().getClusterTimestamp()); id = jobId.getId(); this.jobId=jobId; }
Example 6
Source File: JobHistoryUtils.java From hadoop with Apache License 2.0 | 2 votes |
/** * Computes a serial number used as part of directory naming for the given jobId. * @param id the jobId. * @return the serial number used as part of directory naming for the given jobid */ public static int jobSerialNumber(JobId id) { return id.getId(); }
Example 7
Source File: JobHistoryUtils.java From big-c with Apache License 2.0 | 2 votes |
/** * Computes a serial number used as part of directory naming for the given jobId. * @param id the jobId. * @return the serial number used as part of directory naming for the given jobid */ public static int jobSerialNumber(JobId id) { return id.getId(); }