I have a use-case where i need to process data from files stored in s3 and write the processed data to local files. The s3 files are constantly added to the bucket.
Each time a file is added to the bucket, the full path is published to a kafka topic.
I want to achieve on a single job the following:
- To read the file names from kafka (unbounded stream).
- An evaluator that receives the file name, reads the content from s3 (second source) and creates a dataStream.
- Process the dataStream (adding some logic to each row).
- Sink to file.
I managed to do the first, third and forth part of the design.
Is there a way to achieve this? Thanks in advance.