Hi everyone, I need help on a particular use case here:
• I have an Iceberg table that grows constantly and need to run
Flink rewrite action every few minutes.
•
Flink rewrite action under the hood will create an execution environment, a data stream, a dummy sink and will execute.
• The problem is that action is an one-off task, I cannot re-run the action over and over again in the same job. Flink doesn’t allow creating multiple execution environment, nor calling execute method multiple times.
• I use Flink on Kubernetes with Flink operator, so I can in theory create one job per rewrite iteration. But in application mode, the operator creates a whole cluster per job, which consumes a lot of resources. Also, there needs to be a cleanup mechanism to cleanup finished job.
I have yet to find a solution for this use case, does anyone have an idea how to solve this? Thanks