# The backend that will be used to store operator state checkpoints if# checkpointing is enabled.## Supported backends are 'jobmanager', 'filesystem', 'rocksdb', or the# <class-name-of-factory>.#
state.backend: filesystem
# Directory for checkpoints filesystem, when using any of the default bundled# state backends.#
state.checkpoints.dir: hdfs://hadoop001:9000/flink-checkpoints
# Default target directory for savepoints, optional.#
state.savepoints.dir: hdfs://hadoop001:9000/flink-savepoints
# Flag to enable/disable incremental checkpoints for backends that# support incremental checkpoints (like the RocksDB state backend).## state.backend.incremental: false#设置任务取消后保留hdfs上的checkpoint文件
execution.checkpointing.externalized-checkpoint-retention:RETAIN_ON_CANCELLATION
# checkpoint的时间间隔
execution.checkpointing.interval: 60000
execution.checkpointing.mode: EXACTLY_ONCE