Flink学习15---容错机制(五)checkpoints保存报错 Could not flush and close the file system output stream to hdfs

在保存checkpints的时候,可能会出现保存失败的情况。我遇到的报错如下:

Could not flush and close the file system output stream to hdfs:....

could only be replicated to 0 nodes instead of minReplication (=1). There are 2 datanode(s) running and no node(s) are excluded in this operation.

我的原因是flink-conf.yaml配置文件配置错误。

我只在一个节点上的flink-conf.yaml进行了如下配置,将所有节点上的配置文件都按如下修改,问题解决。

Flink学习15---容错机制(五)checkpoints保存报错 Could not flush and close the file system output stream to hdfs_第1张图片

 

 

 

 

你可能感兴趣的:(Flink,flink,checkpoints)