Currently, flink application is configured and implemented to create avro files on every checkpoint.
Is is possible to force the flink application to create avro file on-demand, instead of configurable time interval.
Is there any REST APIs or any other java implementation and configuration to force checkpoint.
Environment
- Flink version - 1.15.4
- Jdk 8
Assuming you are using
StreamingFileSink.forBulkFormatto produce in avro format, you can implement customCheckpointRollingPolicyand checkpoint on processing time or on a specific event:Yes, you can trigger
savepointwithoutcancel, which will triggercheckpoint. The corresponding REST API endpoint is/jobs/:jobid/savepoints. See REST API #jobs-jobid-savepoints section for detailsUPD: It's possible to trigger
checkpointvia a dedicated/jobs/:jobid/checkpoints POSTendpoint. See REST API #jobs-jobid-checkpoints-1 section for details.