java - hdfs的append追加问题
大家讲道理
大家讲道理 2017-04-18 09:42:38
0
2
417

问一下hdfs的append追加操作,每次追加一定要关闭fds流吗?

我不关闭会报错:areadybeingcreatedexception

大家讲道理
大家讲道理

光阴似箭催人老,日月如移越少年。

reply all(2)
伊谢尔伦

But when I run append, it runs normally at the beginning, but after a while this error occurs

I can’t understand it. Doesn’t append look for the location of the last file pointer in the file metadata? Why is it reported that file creation failed?
Append still needs to create a file?

Ty80

HDFS does have this problem. It is recommended to close and reopen each time, but use batch append to improve efficiency

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template