|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.mapred.gridmix.StressJobFactory
public class StressJobFactory
| Nested Class Summary | |
|---|---|
protected static class |
JobFactory.FilterJobStory
|
| Field Summary | |
|---|---|
protected org.apache.hadoop.conf.Configuration |
conf
|
static String |
CONF_MAX_JOB_TRACKER_RATIO
|
static String |
CONF_MAX_MAPSLOT_SHARE_PER_JOB
|
static String |
CONF_MAX_REDUCESLOT_SHARE_PER_JOB
|
static String |
CONF_OVERLOAD_MAPTASK_MAPSLOT_RATIO
|
static String |
CONF_OVERLOAD_REDUCETASK_REDUCESLOT_RATIO
|
protected IOException |
error
|
protected JobCreator |
jobCreator
|
protected org.apache.hadoop.tools.rumen.JobStoryProducer |
jobProducer
|
protected ReentrantLock |
lock
|
static org.apache.commons.logging.Log |
LOG
|
protected int |
numJobsInTrace
|
protected float |
rateFactor
|
protected Thread |
rThread
|
protected org.apache.hadoop.fs.Path |
scratch
|
protected AtomicInteger |
sequence
|
protected CountDownLatch |
startFlag
|
protected org.apache.hadoop.mapred.gridmix.JobSubmitter |
submitter
|
protected UserResolver |
userResolver
|
| Constructor Summary | |
|---|---|
StressJobFactory(org.apache.hadoop.mapred.gridmix.JobSubmitter submitter,
org.apache.hadoop.tools.rumen.JobStoryProducer jobProducer,
org.apache.hadoop.fs.Path scratch,
org.apache.hadoop.conf.Configuration conf,
CountDownLatch startFlag,
UserResolver resolver)
Creating a new instance does not start the thread. |
|
| Method Summary | |
|---|---|
void |
abort()
Interrupt the reader thread. |
void |
add(Void ignored)
Add is disabled. |
protected void |
checkLoadAndGetSlotsToBackfill()
We try to use some light-weight mechanism to determine cluster load. |
Thread |
createReaderThread()
|
IOException |
error()
Obtain the error that caused the thread to exit unexpectedly. |
protected org.apache.hadoop.tools.rumen.JobStory |
getNextJobFiltered()
|
void |
join(long millis)
Wait for the reader thread to exhaust the job trace. |
void |
shutdown()
Interrupt the reader thread. |
void |
start()
Start the reader thread, wait for latch if necessary. |
void |
update(org.apache.hadoop.mapred.gridmix.Statistics.ClusterStats item)
STRESS Once you get the notification from StatsCollector.Collect the clustermetrics. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final org.apache.commons.logging.Log LOG
public static final String CONF_OVERLOAD_MAPTASK_MAPSLOT_RATIO
public static final String CONF_OVERLOAD_REDUCETASK_REDUCESLOT_RATIO
public static final String CONF_MAX_MAPSLOT_SHARE_PER_JOB
public static final String CONF_MAX_REDUCESLOT_SHARE_PER_JOB
public static final String CONF_MAX_JOB_TRACKER_RATIO
protected final org.apache.hadoop.fs.Path scratch
protected final float rateFactor
protected final org.apache.hadoop.conf.Configuration conf
protected final Thread rThread
protected final AtomicInteger sequence
protected final org.apache.hadoop.mapred.gridmix.JobSubmitter submitter
protected final CountDownLatch startFlag
protected final UserResolver userResolver
protected final JobCreator jobCreator
protected volatile IOException error
protected final org.apache.hadoop.tools.rumen.JobStoryProducer jobProducer
protected final ReentrantLock lock
protected int numJobsInTrace
| Constructor Detail |
|---|
public StressJobFactory(org.apache.hadoop.mapred.gridmix.JobSubmitter submitter,
org.apache.hadoop.tools.rumen.JobStoryProducer jobProducer,
org.apache.hadoop.fs.Path scratch,
org.apache.hadoop.conf.Configuration conf,
CountDownLatch startFlag,
UserResolver resolver)
throws IOException
submitter - Component to which deserialized jobs are passedjobProducer - Stream of job traces with which to construct a
ZombieJobProducerscratch - Directory into which to write output from simulated jobsconf - Config passed to all jobs to be submittedstartFlag - Latch released from main to start pipeline
IOException| Method Detail |
|---|
public Thread createReaderThread()
public void update(org.apache.hadoop.mapred.gridmix.Statistics.ClusterStats item)
item -
protected void checkLoadAndGetSlotsToBackfill()
throws IOException,
InterruptedException
IOException
InterruptedExceptionpublic void start()
protected org.apache.hadoop.tools.rumen.JobStory getNextJobFiltered()
throws IOException
IOExceptionpublic IOException error()
public void add(Void ignored)
UnsupportedOperationException
public void join(long millis)
throws InterruptedException
InterruptedExceptionpublic void shutdown()
public void abort()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||