Flink

Datastream api

connectors

testing

deploy application

recovery

// set mode to at-least-once cpConfig.setCheckpointingMode(CheckpointingMode.AT_LEAST_ONCE );
By default, a failing checkpoint causes an exception that results in an application restart. You can disable this behavior and let the application continue after a checkpointing error.
// do not fail the job on a checkpointing error cpConfig.setFailOnCheckpointingErrors(false);
// enable checkpoint compression env.getConfig.setUseSnapshotCompression(true)
you can also enable a feature called externalized checkpoints to retain checkpoints after the application has stopped.
// Enable externalized checkpoints cpConfig.enableExternalizedCheckpoints(  ExternalizedCheckpointCleanup.RETAIN_ON_CANCELLATION)

Kafka sync

Kubernetes

airflow

get filesystem

final org.apache.flink.core.fs.Path path =
       new org.apache.flink.core.fs.Path("s3a://test-bucket/");
   org.apache.flink.core.fs.FileSystem fs = path.getFileSystem();

Kafka

Windowing

Watermark

A watermark is nothing more than a special record injected into the stream that carries a timestamp(t).


It flows through the operators and informs each operator that no elements with a timestamp older or equal to the watermark timestamp (t) should arrive.

React ?

This page was last modified: