org.apache.hadoop.mapred.gridmix
Class SleepJob

java.lang.Object
  extended by org.apache.hadoop.mapred.gridmix.SleepJob
All Implemented Interfaces:
Comparable<Delayed>, Callable<org.apache.hadoop.mapreduce.Job>, Delayed

public class SleepJob
extends Object


Nested Class Summary
static class GridmixJob.DraftPartitioner<V>
           
static class GridmixJob.SpecGroupingComparator
           
static class SleepJob.SleepInputFormat
           
static class SleepJob.SleepMapper
           
static class SleepJob.SleepReducer
           
static class SleepJob.SleepSplit
           
 
Field Summary
protected static String GRIDMIX_DEFAULT_QUEUE
           
protected static String GRIDMIX_JOB_SEQ
           
static String GRIDMIX_SLEEP_INTERVAL
          Interval at which to report progress, in seconds.
static String GRIDMIX_SLEEP_MAX_MAP_TIME
           
static String GRIDMIX_SLEEP_MAX_REDUCE_TIME
           
protected static String GRIDMIX_USE_QUEUE_IN_TRACE
           
protected  org.apache.hadoop.mapreduce.Job job
           
static String JOB_NAME_PREFIX
           
protected  org.apache.hadoop.tools.rumen.JobStory jobdesc
           
static org.apache.commons.logging.Log LOG
           
protected  org.apache.hadoop.fs.Path outdir
           
protected  int seq
           
static String SLEEPJOB_MAPTASK_ONLY
           
protected  long submissionTimeNanos
           
protected  org.apache.hadoop.security.UserGroupInformation ugi
           
 
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)
           
 
Method Summary
 org.apache.hadoop.mapreduce.Job call()
           
protected  boolean canEmulateCompression()
          Indicates whether this GridmixJob supports compression emulation.
 int compareTo(Delayed other)
           
protected static void configureTaskJVMOptions(org.apache.hadoop.conf.Configuration originalJobConf, org.apache.hadoop.conf.Configuration simulatedJobConf)
           
 boolean equals(Object other)
           
 long getDelay(TimeUnit unit)
           
 org.apache.hadoop.security.UserGroupInformation getUgi()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

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
Method Detail

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.