I have few applications in Spring XD and now I want to use Spring cloud dataflow deployed on Cloud Foundry.
My input source is file. In Spring XD, I used to place the files in the local file system and XD streams used to read from that location. But with CF deployment, how can I specify the location of the remote file system? Will this file module work directly in CF?
The file
source builds upon java.io.File
spec and it is an object that is expected to exist in the local file system, so it wouldn't work on the cloud environment. There is however the "persisted filesystem" feature that is currently being developed in Cloud Foundry; once we have that feature, there'd be an option to wire the file
source application with persistent mount.
With that said, as Corby pointed out in the comment, the best approach for cloud environments is to either use the s3
or sftp
source applications.