org.apache.hadoop.conf.Configurable, org.apache.hadoop.util.Toolpublic class Gridmix
extends org.apache.hadoop.conf.Configured
implements org.apache.hadoop.util.Tool
| Modifier and Type | Field | Description |
|---|---|---|
static java.lang.String |
GRIDMIX_JOBMONITOR_SLEEPTIME_MILLIS |
The configuration key which determines the duration for which the
job-monitor sleeps while polling for job status.
|
static int |
GRIDMIX_JOBMONITOR_SLEEPTIME_MILLIS_DEFAULT |
Default value for
GRIDMIX_JOBMONITOR_SLEEPTIME_MILLIS. |
static java.lang.String |
GRIDMIX_JOBMONITOR_THREADS |
The configuration key which determines the total number of job-status
monitoring threads.
|
static int |
GRIDMIX_JOBMONITOR_THREADS_DEFAULT |
Default value for
GRIDMIX_JOBMONITOR_THREADS. |
static java.lang.String |
GRIDMIX_OUT_DIR |
Output (scratch) directory for submitted jobs.
|
static java.lang.String |
GRIDMIX_QUE_DEP |
The depth of the queue of job descriptions.
|
static java.lang.String |
GRIDMIX_SUB_MUL |
Multiplier to accelerate or decelerate job submission.
|
static java.lang.String |
GRIDMIX_SUB_THR |
Number of submitting threads at the client and upper bound for
in-memory split data.
|
static java.lang.String |
GRIDMIX_USR_RSV |
Class used to resolve users in the trace to the list of target users
on the cluster.
|
static org.slf4j.Logger |
LOG |
|
static java.lang.String |
ORIGINAL_JOB_ID |
Configuration property set in simulated job's configuration whose value is
set to the corresponding original job's id.
|
static java.lang.String |
ORIGINAL_JOB_NAME |
Configuration property set in simulated job's configuration whose value is
set to the corresponding original job's name.
|
| Constructor | Description |
|---|---|
Gridmix() |
| Modifier and Type | Method | Description |
|---|---|---|
protected org.apache.hadoop.mapred.gridmix.JobFactory |
createJobFactory(org.apache.hadoop.mapred.gridmix.JobSubmitter submitter,
java.lang.String traceIn,
org.apache.hadoop.fs.Path scratchDir,
org.apache.hadoop.conf.Configuration conf,
java.util.concurrent.CountDownLatch startFlag,
UserResolver resolver) |
|
protected org.apache.hadoop.mapred.gridmix.JobMonitor |
createJobMonitor(Statistics stats,
org.apache.hadoop.conf.Configuration conf) |
|
protected org.apache.hadoop.tools.rumen.JobStoryProducer |
createJobStoryProducer(java.lang.String traceIn,
org.apache.hadoop.conf.Configuration conf) |
Create an appropriate
JobStoryProducer object for the
given trace. |
protected org.apache.hadoop.mapred.gridmix.JobSubmitter |
createJobSubmitter(org.apache.hadoop.mapred.gridmix.JobMonitor monitor,
int threads,
int queueDepth,
org.apache.hadoop.mapred.gridmix.FilePool pool,
UserResolver resolver,
Statistics statistics) |
|
UserResolver |
getCurrentUserResolver() |
|
protected static org.apache.hadoop.mapred.gridmix.GridmixJobSubmissionPolicy |
getJobSubmissionPolicy(org.apache.hadoop.conf.Configuration conf) |
|
protected org.apache.hadoop.mapred.gridmix.Summarizer |
getSummarizer() |
|
static void |
main(java.lang.String[] argv) |
|
protected void |
printUsage(java.io.PrintStream out) |
|
int |
run(java.lang.String[] argv) |
|
protected void |
writeDistCacheData(org.apache.hadoop.conf.Configuration conf) |
Write random bytes in the distributed cache files that will be used by all
simulated jobs of current gridmix run, if files are to be generated.
|
protected int |
writeInputData(long genbytes,
org.apache.hadoop.fs.Path inputDir) |
Write random bytes at the path <inputDir> if needed.
|
public static final org.slf4j.Logger LOG
public static final java.lang.String GRIDMIX_OUT_DIR
public static final java.lang.String GRIDMIX_SUB_THR
public static final java.lang.String GRIDMIX_QUE_DEP
public static final java.lang.String GRIDMIX_SUB_MUL
public static final java.lang.String GRIDMIX_USR_RSV
public static final java.lang.String GRIDMIX_JOBMONITOR_SLEEPTIME_MILLIS
public static final int GRIDMIX_JOBMONITOR_SLEEPTIME_MILLIS_DEFAULT
GRIDMIX_JOBMONITOR_SLEEPTIME_MILLIS.public static final java.lang.String GRIDMIX_JOBMONITOR_THREADS
public static final int GRIDMIX_JOBMONITOR_THREADS_DEFAULT
GRIDMIX_JOBMONITOR_THREADS.public static final java.lang.String ORIGINAL_JOB_NAME
public static final java.lang.String ORIGINAL_JOB_ID
protected int writeInputData(long genbytes,
org.apache.hadoop.fs.Path inputDir)
throws java.io.IOException,
java.lang.InterruptedException
java.io.IOExceptionjava.lang.InterruptedExceptionGenerateDataprotected void writeDistCacheData(org.apache.hadoop.conf.Configuration conf)
throws java.io.IOException,
java.lang.InterruptedException
GenerateDistCacheData.JOB_NAMEjava.io.IOExceptionjava.lang.InterruptedExceptionGenerateDistCacheDataprotected org.apache.hadoop.tools.rumen.JobStoryProducer createJobStoryProducer(java.lang.String traceIn,
org.apache.hadoop.conf.Configuration conf)
throws java.io.IOException
JobStoryProducer object for the
given trace.traceIn - the path to the trace file. The special path
"-" denotes the standard input stream.conf - the configuration to be used.java.io.IOException - if there was an error.protected static org.apache.hadoop.mapred.gridmix.GridmixJobSubmissionPolicy getJobSubmissionPolicy(org.apache.hadoop.conf.Configuration conf)
protected org.apache.hadoop.mapred.gridmix.JobMonitor createJobMonitor(Statistics stats, org.apache.hadoop.conf.Configuration conf) throws java.io.IOException
java.io.IOExceptionprotected org.apache.hadoop.mapred.gridmix.JobSubmitter createJobSubmitter(org.apache.hadoop.mapred.gridmix.JobMonitor monitor,
int threads,
int queueDepth,
org.apache.hadoop.mapred.gridmix.FilePool pool,
UserResolver resolver,
Statistics statistics)
throws java.io.IOException
java.io.IOExceptionprotected org.apache.hadoop.mapred.gridmix.JobFactory createJobFactory(org.apache.hadoop.mapred.gridmix.JobSubmitter submitter,
java.lang.String traceIn,
org.apache.hadoop.fs.Path scratchDir,
org.apache.hadoop.conf.Configuration conf,
java.util.concurrent.CountDownLatch startFlag,
UserResolver resolver)
throws java.io.IOException
java.io.IOExceptionpublic UserResolver getCurrentUserResolver()
public int run(java.lang.String[] argv)
throws java.io.IOException,
java.lang.InterruptedException
run in interface org.apache.hadoop.util.Tooljava.io.IOExceptionjava.lang.InterruptedExceptionpublic static void main(java.lang.String[] argv)
throws java.lang.Exception
java.lang.Exceptionprotected void printUsage(java.io.PrintStream out)
protected org.apache.hadoop.mapred.gridmix.Summarizer getSummarizer()
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.