mituan2008 发表于 2013-10-25 10:43:55

FSDataOutputStream::close failed close文件失败

正在做一个项目,使用到libhdfs,当我频繁的hdfsOpen,hdfsClose一个文件时,当次数达到一定数量以后,就会报错大家看看有没有出现类似的,好像主要就是close文件失败
log:
WARNING: DataStreamer Exception: java.lang.NullPointerException
      at org.apache.hadoop.hdfs.DFSOutputStream$DataStreamer.run(DFSOutputStream.java:480)
Jun 13, 2011 11:23:24 AM org.apache.hadoop.hdfs.DFSOutputStream$DataStreamer$ResponseProcessor run
WARNING: DFSOutputStream ResponseProcessor exceptionfor block blk_-667073437321889374_48271java.lang.NullPointerException
      at org.apache.hadoop.hdfs.protocol.DataTransferProtocol$PipelineAck.readFields(DataTransferProtocol.java:531)
      at org.apache.hadoop.hdfs.DFSOutputStream$DataStreamer$ResponseProcessor.run(DFSOutputStream.java:616)
Exception in thread "main" java.io.IOException: All datanodes 192.168.0.54:50010 are bad. Aborting...
      at org.apache.hadoop.hdfs.DFSOutputStream$DataStreamer.setupPipelineForAppendOrRecovery(DFSOutputStream.java:753)
      at org.apache.hadoop.hdfs.DFSOutputStream$DataStreamer.run(DFSOutputStream.java:431)
Call to org/apache/hadoop/fs/FSDataOutputStream::close failed!    dfs文件关闭失败
Exception in thread "main" org.apache.hadoop.hdfs.protocol.AlreadyBeingCreatedException: failed to create file /user/data/hellot for DFSClient_-70081129 on client 192.168.0.55 because current leaseholder is trying to recreate file.
页: [1]
查看完整版本: FSDataOutputStream::close failed close文件失败