|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.yarn.batch.partition.AbstractBatchPartitionHandler
org.springframework.yarn.batch.partition.HdfsSplitBatchPartitionHandler
public class HdfsSplitBatchPartitionHandler
Implementation of Spring Batch PartitionHandler which does
partitioning based on number of input files from HDFS.
| Constructor Summary | |
|---|---|
HdfsSplitBatchPartitionHandler(AbstractBatchAppmaster batchAppmaster)
Instantiates a new hdfs split batch partition handler. |
|
HdfsSplitBatchPartitionHandler(AbstractBatchAppmaster batchAppmaster,
Configuration configuration)
Instantiates a new hdfs split batch partition handler. |
|
| Method Summary | |
|---|---|
protected Map<StepExecution,org.springframework.yarn.am.container.ContainerRequestHint> |
createResourceRequestData(Set<StepExecution> stepExecutions)
Subclass may override this method to assign a specific ContainerRequestHint to
a StepExecution. |
protected Set<StepExecution> |
createStepExecutionSplits(StepExecutionSplitter stepSplitter,
StepExecution stepExecution)
|
Configuration |
getConfiguration()
Gets the Yarn configuration. |
void |
setConfiguration(Configuration configuration)
Sets the Yarn configuration. |
| Methods inherited from class org.springframework.yarn.batch.partition.AbstractBatchPartitionHandler |
|---|
getContainerResolver, getStepName, handle, setBatchAppmaster, setContainerResolver, setStepName, setYarnAppmaster, waitCompleteState |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HdfsSplitBatchPartitionHandler(AbstractBatchAppmaster batchAppmaster)
batchAppmaster - the batch appmaster
public HdfsSplitBatchPartitionHandler(AbstractBatchAppmaster batchAppmaster,
Configuration configuration)
batchAppmaster - the batch appmaster| Method Detail |
|---|
public Configuration getConfiguration()
public void setConfiguration(Configuration configuration)
configuration - the new Yarn configuration
protected Set<StepExecution> createStepExecutionSplits(StepExecutionSplitter stepSplitter,
StepExecution stepExecution)
throws Exception
createStepExecutionSplits in class AbstractBatchPartitionHandlerException
protected Map<StepExecution,org.springframework.yarn.am.container.ContainerRequestHint> createResourceRequestData(Set<StepExecution> stepExecutions)
throws Exception
AbstractBatchPartitionHandlerContainerRequestHint to
a StepExecution. This would be needed in cases where step should be executed
in a specific host or rack considering data locality. Default implementation
returns an empty map.
createResourceRequestData in class AbstractBatchPartitionHandlerstepExecutions - Set of step executions
Exception - If error occurred
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||