could only be written to 0 of the 1 minReplication nodes. There are 1 datanode(s) running and 1 node

时间:2025-03-23 10:04:11

flume往HDFS写入数据报错如下所示:

  • could only be written to 0 of the 1 minReplication nodes. There are 1 datanode(s) running and 1 node

错误原因是:

  • 没有可用的datanode了,hdfs空间满了

错误解决方法是:

  • HDFS磁盘扩容
  • 清理HDFS上冗余文件