其他分享
首页 > 其他分享> > 02-Flink检查点

02-Flink检查点

作者:互联网

记录:Flink 检查点和状态后端在实际生产中用得特别多,通过学习记录,如果有不对的地方大家多多指教

1 Flink checkpoint实战篇

1.1 Flink配置

jobmanager.rpc.address: dw501
jobmanager.rpc.port: 6123
jobmanager.memory.process.size: 1600m
taskmanager.memory.process.size: 1728m
taskmanager.numberOfTaskSlots: 1
parallelism.default: 1
state.backend: filesystem
state.checkpoints.dir: hdfs://dw501:9820/flink-demo
state.savepoints.dir: hdfs://dw501:9820/flink-savepoints
jobmanager.execution.failover-strategy: region
jobmanager.archive.fs.dir: hdfs://dw501:9820/completed-jobs/
historyserver.web.address: dw501
historyserver.web.port: 8082
historyserver.archive.fs.dir: hdfs://dw501:9820/completed-jobs/
historyserver.archive.fs.refresh-interval: 10000

上面的这些配置文件,大家可以可选也可以进行单独的其它的配置项

1.2 Flink wordcount

package com.wmy.example.wo

标签:02,dw501,hdfs,historyserver,Flink,jobmanager,检查点,9820
来源: https://blog.csdn.net/weixin_45098163/article/details/121885695