public abstract class AbstractStageClient extends BaseStageClient
| Modifier and Type | Field and Description |
|---|---|
static String |
METHOD_COMBINER_CLASS
The method name of
getCombinerClassOrNull(). |
static String |
METHOD_GROUPING_COMPARATOR_CLASS
The method name of
getGroupingComparatorClassOrNull(). |
static String |
METHOD_PARTITIONER_CLASS
The method name of
getPartitionerClassOrNull(). |
static String |
METHOD_REDUCER_CLASS
The method name of
getReducerClassOrNull(). |
static String |
METHOD_SHUFFLE_KEY_CLASS
The method name of
getShuffleKeyClassOrNull(). |
static String |
METHOD_SHUFFLE_VALUE_CLASS
The method name of
getShuffleValueClassOrNull(). |
static String |
METHOD_SORT_COMPARATOR_CLASS
The method name of
getSortComparatorClassOrNull(). |
static String |
METHOD_STAGE_INPUTS
The method name of
getStageInputs(). |
static String |
METHOD_STAGE_OUTPUT_PATH
The method name of
getStageOutputPath(). |
static String |
METHOD_STAGE_OUTPUTS
The method name of
getStageOutputs(). |
static String |
METHOD_STAGE_RESOURCES
The method name of
getStageResources(). |
METHOD_BATCH_ID, METHOD_FLOW_ID, METHOD_STAGE_ID| Constructor and Description |
|---|
AbstractStageClient() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
configureStage(org.apache.hadoop.mapreduce.Job job,
VariableTable variables)
Configures the
Job object for this stage. |
org.apache.hadoop.mapreduce.Job |
createJob(org.apache.hadoop.conf.Configuration conf)
Creates a new job.
|
protected int |
execute(String[] args)
Performs stage execution.
|
protected Class<? extends org.apache.hadoop.mapreduce.Reducer> |
getCombinerClassOrNull()
Returns the combiner class.
|
protected Class<? extends org.apache.hadoop.io.RawComparator> |
getGroupingComparatorClassOrNull()
Returns the grouping comparator class (for shuffle keys).
|
protected Class<? extends org.apache.hadoop.mapreduce.Partitioner> |
getPartitionerClassOrNull()
Returns the partitioner class.
|
protected Class<? extends org.apache.hadoop.mapreduce.Reducer> |
getReducerClassOrNull()
Returns the reducer class.
|
protected Class<? extends org.apache.hadoop.io.Writable> |
getShuffleKeyClassOrNull()
Returns the shuffle key class.
|
protected Class<? extends org.apache.hadoop.io.Writable> |
getShuffleValueClassOrNull()
Returns the shuffle value class.
|
protected Class<? extends org.apache.hadoop.io.RawComparator> |
getSortComparatorClassOrNull()
Returns the sort comparator class (for shuffle keys).
|
protected abstract List<StageInput> |
getStageInputs()
Returns the stage inputs.
|
protected abstract String |
getStageOutputPath()
Returns the base path of stage output.
|
protected List<StageOutput> |
getStageOutputs()
Returns the stage outputs.
|
protected List<StageResource> |
getStageResources()
Returns the stage resources.
|
getBatchId, getDefinitionId, getExecutionId, getFlowId, getOperationId, getStageId, getUser, runpublic static final String METHOD_STAGE_OUTPUT_PATH
getStageOutputPath().public static final String METHOD_STAGE_INPUTS
getStageInputs().public static final String METHOD_STAGE_OUTPUTS
getStageOutputs().public static final String METHOD_STAGE_RESOURCES
getStageResources().public static final String METHOD_SHUFFLE_KEY_CLASS
getShuffleKeyClassOrNull().public static final String METHOD_SHUFFLE_VALUE_CLASS
getShuffleValueClassOrNull().public static final String METHOD_PARTITIONER_CLASS
getPartitionerClassOrNull().public static final String METHOD_COMBINER_CLASS
getCombinerClassOrNull().public static final String METHOD_SORT_COMPARATOR_CLASS
getSortComparatorClassOrNull().public static final String METHOD_GROUPING_COMPARATOR_CLASS
getGroupingComparatorClassOrNull().public static final String METHOD_REDUCER_CLASS
getReducerClassOrNull().protected void configureStage(org.apache.hadoop.mapreduce.Job job,
VariableTable variables)
throws IOException,
InterruptedException
Job object for this stage.job - the target jobvariables - current variable tableIOException - if failed to configure the jobInterruptedException - if interrupted while configuring Job objectprotected abstract List<StageInput> getStageInputs()
StageInputDriverprotected abstract String getStageOutputPath()
protected List<StageOutput> getStageOutputs()
StageOutputDriverprotected List<StageResource> getStageResources()
StageResourceDriverprotected Class<? extends org.apache.hadoop.io.Writable> getShuffleKeyClassOrNull()
null if a reduce operation is not required in this stageprotected Class<? extends org.apache.hadoop.io.Writable> getShuffleValueClassOrNull()
null if a reduce operation is not required in this stageprotected Class<? extends org.apache.hadoop.mapreduce.Partitioner> getPartitionerClassOrNull()
null if a reduce operation is not required in this stageprotected Class<? extends org.apache.hadoop.mapreduce.Reducer> getCombinerClassOrNull()
null if a combine operation is not required in this stageprotected Class<? extends org.apache.hadoop.io.RawComparator> getSortComparatorClassOrNull()
null if a reduce operation is not required in this stageprotected Class<? extends org.apache.hadoop.io.RawComparator> getGroupingComparatorClassOrNull()
null if a reduce operation is not required in this stageprotected Class<? extends org.apache.hadoop.mapreduce.Reducer> getReducerClassOrNull()
null if a reduce operation is not required in this stageprotected int execute(String[] args) throws Exception
BaseStageClientexecute in class BaseStageClientargs - argumentsException - if failed to executepublic org.apache.hadoop.mapreduce.Job createJob(org.apache.hadoop.conf.Configuration conf)
throws IOException,
InterruptedException
conf - asakusa job configurationIOException - if failed to create a new jobInterruptedException - if interrupted while creating Job objectIllegalArgumentException - if some parameters were nullCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.