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 |
setExecutorMemory(java.lang.String executorMemory) |
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 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 setNumExecutors(int numExecutors)
public void setArguments(java.lang.String[] arguments)