Hi all, I am working with Flink 1.15 to write stre...
# troubleshooting
m
Hi all, I am working with Flink 1.15 to write streaming data into a bulk file format (ORC). I am trying to write quite consistently sized files to the target filesystem and avoid small files altogether. I have two points that I want to check are correct: • From what I can see, a new ORC file must be written for every checkpoint, so this means that in order to guarantee a minimum file size (e.g. 512MB), I would have to guarantee a minimum throughput during that checkpoint period? • It also appears that since checkpoints can only be set based on time, if I create multiple ORC files of the same size inside of a single checkpoint interval, the checkpoint rollover itself will always create a new file, so controlling the size of that last file created by the checkpoint is not possible? Is the above correct or am I missing something here? As mentioned, the idea is to try to avoid small files altogether on the target filesystem, if possible by setting a minimum and maximum allowable file size on the target filesystem. Is there a way to achieve this in a Flink streaming application or would you need to create a separate application that periodically merges these smaller files together based on the file size on disk? Any assistance with this is greatly appreciated!