|
Spring for Apache Hadoop | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.yarn.support.LifecycleObjectSupport
org.springframework.yarn.am.AbstractAppmaster
org.springframework.yarn.am.AbstractServicesAppmaster
org.springframework.yarn.am.AbstractEventingAppmaster
org.springframework.yarn.batch.am.AbstractBatchAppmaster
org.springframework.yarn.batch.am.BatchAppmaster
public class BatchAppmaster
Implementation of application master which can be used to run Spring Batch jobs on Hadoop Yarn cluster.
Application master will act as a context running the Spring Batch job. Order to make some sense in terms of using cluster resources, job itself should be able to partition itself in a way that Yarn containers can be used to split the load.
| Constructor Summary | |
|---|---|
BatchAppmaster()
|
|
| Method Summary | |
|---|---|
protected void |
doStart()
Subclasses may implement this method with the start behavior. |
void |
onApplicationEvent(AbstractYarnEvent event)
|
void |
submitApplication()
Submit and run application. |
| Methods inherited from class org.springframework.yarn.batch.am.AbstractBatchAppmaster |
|---|
addPartitionedStepExecutionStateListener, addStepSplits, getStepExecutions, getYarnJobLauncher, onContainerAllocated, onContainerCompleted, onContainerLaunched, onInit, preLaunch, setYarnJobLauncher |
| Methods inherited from class org.springframework.yarn.am.AbstractEventingAppmaster |
|---|
onContainerLaunchRequestFailed |
| Methods inherited from class org.springframework.yarn.am.AbstractServicesAppmaster |
|---|
getAllocator, getLauncher, getMonitor, setAllocator, setLauncher, setMonitor |
| Methods inherited from class org.springframework.yarn.support.LifecycleObjectSupport |
|---|
afterPropertiesSet, getBeanFactory, getPhase, getTaskExecutor, getTaskScheduler, getYarnEventPublisher, isAutoStartup, isRunning, setAutoStartup, setBeanFactory, setPhase, setTaskExecutor, setTaskScheduler, setYarnEventPublisher, start, stop, stop |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.springframework.yarn.am.YarnAppmaster |
|---|
addAppmasterStateListener, setEnvironment, setParameters |
| Constructor Detail |
|---|
public BatchAppmaster()
| Method Detail |
|---|
public void submitApplication()
YarnAppmaster
submitApplication in interface YarnAppmasterpublic void onApplicationEvent(AbstractYarnEvent event)
onApplicationEvent in interface org.springframework.context.ApplicationListener<AbstractYarnEvent>onApplicationEvent in class AbstractEventingAppmasterprotected void doStart()
LifecycleObjectSupportLifecycleObjectSupport.lifecycleLock.
doStart in class LifecycleObjectSupport
|
Spring for Apache Hadoop | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||