public class SparkYarnTasklet
extends java.lang.Object
implements org.springframework.beans.factory.InitializingBean, org.springframework.batch.core.step.tasklet.Tasklet, org.springframework.batch.core.StepExecutionListener
Constructor and Description |
---|
SparkYarnTasklet() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
org.springframework.batch.core.ExitStatus |
afterStep(org.springframework.batch.core.StepExecution stepExecution) |
void |
beforeStep(org.springframework.batch.core.StepExecution stepExecution) |
org.springframework.batch.repeat.RepeatStatus |
execute(org.springframework.batch.core.StepContribution contribution,
org.springframework.batch.core.scope.context.ChunkContext chunkContext) |
void |
setAppClass(java.lang.String appClass) |
void |
setAppJar(java.lang.String appJar) |
void |
setAppName(java.lang.String appName) |
void |
setArguments(java.lang.String[] arguments) |
void |
setDriverCores(java.lang.String driverCores) |
void |
setDriverMemory(java.lang.String driverMemory) |
void |
setExecutorCores(java.lang.String executorCores) |
void |
setExecutorMemory(java.lang.String executorMemory) |
void |
setExtraClassPath(java.lang.String extraClassPath) |
void |
setHadoopConfiguration(org.apache.hadoop.conf.Configuration configuration) |
void |
setNumExecutors(int numExecutors) |
void |
setResourceArchives(java.lang.String resourceArchives) |
void |
setResourceFiles(java.lang.String resourceFiles) |
void |
setSparkAssemblyJar(java.lang.String sparkAssemblyJar) |
public org.springframework.batch.repeat.RepeatStatus execute(org.springframework.batch.core.StepContribution contribution, org.springframework.batch.core.scope.context.ChunkContext chunkContext) throws java.lang.Exception
execute
in interface org.springframework.batch.core.step.tasklet.Tasklet
java.lang.Exception
public void beforeStep(org.springframework.batch.core.StepExecution stepExecution)
beforeStep
in interface org.springframework.batch.core.StepExecutionListener
public org.springframework.batch.core.ExitStatus afterStep(org.springframework.batch.core.StepExecution stepExecution)
afterStep
in interface org.springframework.batch.core.StepExecutionListener
public void afterPropertiesSet() throws java.lang.Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
java.lang.Exception
public void setSparkAssemblyJar(java.lang.String sparkAssemblyJar)
public void setExtraClassPath(java.lang.String extraClassPath)
public void setHadoopConfiguration(org.apache.hadoop.conf.Configuration configuration)
public void setAppName(java.lang.String appName)
public void setAppClass(java.lang.String appClass)
public void setAppJar(java.lang.String appJar)
public void setResourceFiles(java.lang.String resourceFiles)
public void setResourceArchives(java.lang.String resourceArchives)
public void setExecutorMemory(java.lang.String executorMemory)
public void setExecutorCores(java.lang.String executorCores)
public void setDriverMemory(java.lang.String driverMemory)
public void setDriverCores(java.lang.String driverCores)
public void setNumExecutors(int numExecutors)
public void setArguments(java.lang.String[] arguments)