public class StressJobFactory
extends java.lang.Object
| Modifier and Type | Field | Description |
|---|---|---|
protected org.apache.hadoop.conf.Configuration |
conf |
|
static java.lang.String |
CONF_MAX_JOB_TRACKER_RATIO |
|
static java.lang.String |
CONF_MAX_MAPSLOT_SHARE_PER_JOB |
|
static java.lang.String |
CONF_MAX_REDUCESLOT_SHARE_PER_JOB |
|
static java.lang.String |
CONF_OVERLOAD_MAPTASK_MAPSLOT_RATIO |
|
static java.lang.String |
CONF_OVERLOAD_REDUCETASK_REDUCESLOT_RATIO |
|
protected java.io.IOException |
error |
|
protected JobCreator |
jobCreator |
|
protected org.apache.hadoop.tools.rumen.JobStoryProducer |
jobProducer |
|
protected java.util.concurrent.locks.ReentrantLock |
lock |
|
static org.slf4j.Logger |
LOG |
|
protected int |
numJobsInTrace |
|
protected float |
rateFactor |
|
protected java.lang.Thread |
rThread |
|
protected org.apache.hadoop.fs.Path |
scratch |
|
protected java.util.concurrent.atomic.AtomicInteger |
sequence |
|
protected java.util.concurrent.CountDownLatch |
startFlag |
|
protected org.apache.hadoop.mapred.gridmix.JobSubmitter |
submitter |
|
protected UserResolver |
userResolver |
| Constructor | Description |
|---|---|
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,
java.util.concurrent.CountDownLatch startFlag,
UserResolver resolver) |
Creating a new instance does not start the thread.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
abort() |
Interrupt the reader thread.
|
void |
add(java.lang.Void ignored) |
Add is disabled.
|
protected void |
checkLoadAndGetSlotsToBackfill() |
We try to use some light-weight mechanism to determine cluster load.
|
java.lang.Thread |
createReaderThread() |
|
java.io.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.
|
public static final org.slf4j.Logger LOG
public static final java.lang.String CONF_OVERLOAD_MAPTASK_MAPSLOT_RATIO
public static final java.lang.String CONF_OVERLOAD_REDUCETASK_REDUCESLOT_RATIO
public static final java.lang.String CONF_MAX_MAPSLOT_SHARE_PER_JOB
public static final java.lang.String CONF_MAX_REDUCESLOT_SHARE_PER_JOB
public static final java.lang.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 java.lang.Thread rThread
protected final java.util.concurrent.atomic.AtomicInteger sequence
protected final org.apache.hadoop.mapred.gridmix.JobSubmitter submitter
protected final java.util.concurrent.CountDownLatch startFlag
protected final UserResolver userResolver
protected final JobCreator jobCreator
protected volatile java.io.IOException error
protected final org.apache.hadoop.tools.rumen.JobStoryProducer jobProducer
protected final java.util.concurrent.locks.ReentrantLock lock
protected int numJobsInTrace
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,
java.util.concurrent.CountDownLatch startFlag,
UserResolver resolver)
throws java.io.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 pipelinejava.io.IOExceptionpublic java.lang.Thread createReaderThread()
public void update(org.apache.hadoop.mapred.gridmix.Statistics.ClusterStats item)
item - protected void checkLoadAndGetSlotsToBackfill()
throws java.io.IOException,
java.lang.InterruptedException
java.io.IOExceptionjava.lang.InterruptedExceptionpublic void start()
protected org.apache.hadoop.tools.rumen.JobStory getNextJobFiltered()
throws java.io.IOException
java.io.IOExceptionpublic java.io.IOException error()
public void add(java.lang.Void ignored)
java.lang.UnsupportedOperationExceptionpublic void join(long millis)
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic void shutdown()
public void abort()
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.