org.apache.hadoop.mapred.gridmix
Class SleepJob
java.lang.Object
org.apache.hadoop.mapred.gridmix.SleepJob
- All Implemented Interfaces:
- Comparable<Delayed>, Callable<org.apache.hadoop.mapreduce.Job>, Delayed
public class SleepJob
- extends Object
|
Constructor Summary |
SleepJob(org.apache.hadoop.conf.Configuration conf,
long submissionMillis,
org.apache.hadoop.tools.rumen.JobStory jobdesc,
org.apache.hadoop.fs.Path outRoot,
org.apache.hadoop.security.UserGroupInformation ugi,
int seq,
int numLocations,
String[] hosts)
|
LOG
public static final org.apache.commons.logging.Log LOG
SLEEPJOB_MAPTASK_ONLY
public static final String SLEEPJOB_MAPTASK_ONLY
- See Also:
- Constant Field Values
GRIDMIX_SLEEP_INTERVAL
public static final String GRIDMIX_SLEEP_INTERVAL
- Interval at which to report progress, in seconds.
- See Also:
- Constant Field Values
GRIDMIX_SLEEP_MAX_MAP_TIME
public static final String GRIDMIX_SLEEP_MAX_MAP_TIME
- See Also:
- Constant Field Values
GRIDMIX_SLEEP_MAX_REDUCE_TIME
public static final String GRIDMIX_SLEEP_MAX_REDUCE_TIME
- See Also:
- Constant Field Values
JOB_NAME_PREFIX
public static final String JOB_NAME_PREFIX
- See Also:
- Constant Field Values
seq
protected final int seq
outdir
protected final org.apache.hadoop.fs.Path outdir
job
protected final org.apache.hadoop.mapreduce.Job job
jobdesc
protected final org.apache.hadoop.tools.rumen.JobStory jobdesc
ugi
protected final org.apache.hadoop.security.UserGroupInformation ugi
submissionTimeNanos
protected final long submissionTimeNanos
GRIDMIX_JOB_SEQ
protected static final String GRIDMIX_JOB_SEQ
- See Also:
- Constant Field Values
GRIDMIX_USE_QUEUE_IN_TRACE
protected static final String GRIDMIX_USE_QUEUE_IN_TRACE
- See Also:
- Constant Field Values
GRIDMIX_DEFAULT_QUEUE
protected static final String GRIDMIX_DEFAULT_QUEUE
- See Also:
- Constant Field Values
SleepJob
public SleepJob(org.apache.hadoop.conf.Configuration conf,
long submissionMillis,
org.apache.hadoop.tools.rumen.JobStory jobdesc,
org.apache.hadoop.fs.Path outRoot,
org.apache.hadoop.security.UserGroupInformation ugi,
int seq,
int numLocations,
String[] hosts)
throws IOException
- Throws:
IOException
canEmulateCompression
protected boolean canEmulateCompression()
- Indicates whether this
GridmixJob supports compression emulation.
call
public org.apache.hadoop.mapreduce.Job call()
throws IOException,
InterruptedException,
ClassNotFoundException
- Throws:
IOException
InterruptedException
ClassNotFoundException
configureTaskJVMOptions
protected static void configureTaskJVMOptions(org.apache.hadoop.conf.Configuration originalJobConf,
org.apache.hadoop.conf.Configuration simulatedJobConf)
getUgi
public org.apache.hadoop.security.UserGroupInformation getUgi()
toString
public String toString()
- Overrides:
toString in class Object
getDelay
public long getDelay(TimeUnit unit)
- Specified by:
getDelay in interface Delayed
compareTo
public int compareTo(Delayed other)
- Specified by:
compareTo in interface Comparable<Delayed>
equals
public boolean equals(Object other)
- Overrides:
equals in class Object
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
Copyright © 2014 Apache Software Foundation. All Rights Reserved.