wget https://archive.apache.org/dist/flink/flink-1.16.1/flink-1.16.1-bin-scala_2.12.tgz
tar -xzf flink-1.16.1-bin-scala_2.12.tgz
cd flink-1.16.1
- 修改配置文件开启checkpoint和savepoint
vi/flink-conf.yaml
execution.checkpointing.interval: 3min
state.backend: filesystem
state.checkpoints.dir: file:///home/flink/flink-1.16.1/flink-checkpoints
state.savepoints.dir: file:///home/flink/flink-1.16.1/flink-savepoints
rest.bind-address: 0.0.0.0:
classloader.resolve-order: parent-first
restart-strategy: fixed-delay
restart-strategy.fixed-delay.attempts: 3
restart-strategy.fixed-delay.delay: 10 s
./bin/start-cluster.sh
Starting cluster.
Starting standalonesession daemon on host.
Starting taskexecutor daemon on host.
- Flink WebUI http://localhost:8081