Project: springxd
Issue XD-3150: the 'filepollhdfs' job fails on second submission
Definitions: >job create pollHdfs --definition "filepollhdfs --names=name,age" --deploy true >stream create csvStream --definition "file --mode=ref --dir=/Users/trisberg/Test/files --pattern=*.csv > queue:job:pollHdfs" --deploy Here is the exception: {code} org.springframework.data.hadoop.store.StoreException: Error while flushing stream; nested exception is java.nio.channels.ClosedChannelException org.springframework.xd.batch.item.hadoop.HdfsTextItemWriter.update(HdfsTextItemWriter.java:135) org.springframework.batch.item.support.CompositeItemStream.update(CompositeItemStream.java:74) org.springframework.batch.core.step.tasklet.TaskletStep.doExecute(TaskletStep.java:250) org.springframework.batch.core.step.AbstractStep.execute(AbstractStep.java:198) org.springframework.batch.core.job.SimpleStepHandler.handleStep(SimpleStepHandler.java:148) org.springframework.batch.core.job.flow.JobFlowExecutor.executeStep(JobFlowExecutor.java:64) org.springframework.batch.core.job.flow.support.state.StepState.handle(StepState.java:67) org.springframework.batch.core.job.flow.support.SimpleFlow.resume(SimpleFlow.java:165) org.springframework.batch.core.job.flow.support.SimpleFlow.start(SimpleFlow.java:144) org.springframework.batch.core.job.flow.FlowJob.doExecute(FlowJob.java:134) org.springframework.batch.core.job.AbstractJob.execute(AbstractJob.java:304) org.springframework.batch.core.launch.support.SimpleJobLauncher$1.run(SimpleJobLauncher.java:135) org.springframework.core.task.SyncTaskExecutor.execute(SyncTaskExecutor.java:50) org.springframework.batch.core.launch.support.SimpleJobLauncher.run(SimpleJobLauncher.java:128) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) java.lang.reflect.Method.invoke(Method.java:606) org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317) org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190) org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157) org.springframework.batch.core.configuration.annotation.SimpleBatchConfiguration$PassthruAdvice.invoke(SimpleBatchConfiguration.java:127) org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207) com.sun.proxy.$Proxy54.run(Unknown Source) org.springframework.batch.integration.launch.JobLaunching {code}
Story points: 3