public class RemoteFileToHadoopTasklet
extends java.lang.Object
implements org.springframework.batch.core.step.tasklet.Tasklet
RemoteFileTemplate to retrieve the file as a
String and writes to hdfs.| Constructor and Description |
|---|
RemoteFileToHadoopTasklet(org.springframework.integration.file.remote.RemoteFileTemplate template,
org.apache.hadoop.conf.Configuration configuration,
java.lang.String hdfsDirectory) |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.batch.repeat.RepeatStatus |
execute(org.springframework.batch.core.StepContribution contribution,
org.springframework.batch.core.scope.context.ChunkContext chunkContext) |
public RemoteFileToHadoopTasklet(org.springframework.integration.file.remote.RemoteFileTemplate template,
org.apache.hadoop.conf.Configuration configuration,
java.lang.String hdfsDirectory)
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.Taskletjava.lang.Exception