Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

Can hdfs appendToFile from different node to same file at the same time ?

avatar
New Member

Hi,

May i know hdfs able to append to file using appendToFile from different node to same file at the same time using HDFS latest version ?

Thanks for any guide / advice.

Best Regards,

Jason

1 ACCEPTED SOLUTION

avatar

@Jason Hue

HDFS only allows one write or append to a file at a time. Allowing concurrent writes would mean that the order of bytes in the file would be random. Even if the two appends write to different blocks, how would you determine which block comes first in the file? It's a difficult problem to solve that has not been done in HDFS.

View solution in original post

1 REPLY 1

avatar

@Jason Hue

HDFS only allows one write or append to a file at a time. Allowing concurrent writes would mean that the order of bytes in the file would be random. Even if the two appends write to different blocks, how would you determine which block comes first in the file? It's a difficult problem to solve that has not been done in HDFS.