|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.hadoop.mapreduce.ID org.apache.hadoop.mapred.ID org.apache.hadoop.mapreduce.JobID org.apache.hadoop.mapred.JobID
public class JobID
JobID represents the immutable and unique identifier for
the job. JobID consists of two parts. First part
represents the jobtracker identifier, so that jobID to jobtracker map
is defined. For cluster setup this string is the jobtracker
start time, for local setting, it is "local".
Second part of the JobID is the job number.
An example JobID is :
job_200707121733_0003
, which represents the third job
running at the jobtracker started at 200707121733
.
Applications should never construct or parse JobID strings, but rather
use appropriate constructors or forName(String)
method.
TaskID
,
TaskAttemptID
Field Summary |
---|
Fields inherited from class org.apache.hadoop.mapreduce.JobID |
---|
idFormat, JOB, JOBID_REGEX |
Fields inherited from class org.apache.hadoop.mapreduce.ID |
---|
id, SEPARATOR |
Constructor Summary | |
---|---|
JobID()
|
|
JobID(String jtIdentifier,
int id)
Constructs a JobID object |
Method Summary | |
---|---|
static JobID |
downgrade(JobID old)
Downgrade a new JobID to an old one |
static JobID |
forName(String str)
Construct a JobId object from given string |
static String |
getJobIDsPattern(String jtIdentifier,
Integer jobId)
Deprecated. |
static JobID |
read(DataInput in)
Deprecated. |
Methods inherited from class org.apache.hadoop.mapreduce.JobID |
---|
appendTo, compareTo, equals, getJtIdentifier, hashCode, readFields, toString, write |
Methods inherited from class org.apache.hadoop.mapreduce.ID |
---|
getId |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public JobID(String jtIdentifier, int id)
jtIdentifier
- jobTracker identifierid
- job numberpublic JobID()
Method Detail |
---|
public static JobID downgrade(JobID old)
old
- a new or old JobID
@Deprecated public static JobID read(DataInput in) throws IOException
IOException
public static JobID forName(String str) throws IllegalArgumentException
IllegalArgumentException
- if the given string is malformed@Deprecated public static String getJobIDsPattern(String jtIdentifier, Integer jobId)
JobID.getTaskIDsPattern("200707121733", null);which will return :
"job_200707121733_[0-9]*"
jtIdentifier
- jobTracker identifier, or nulljobId
- job number, or null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |