0 votes
in HDFS by
Can multiple clients write into an HDFS file concurrently?

1 Answer

0 votes
by

No, multiple clients can’t write into an HDFS file concurrently. HDFS follows single writer multiple reader model. The client which opens a file for writing is granted a lease by the NameNode. Now suppose, in the meanwhile, some other client wants to write into that very file and asks NameNode for the write permission. At first, the NameNode will check whether the lease for writing into that very particular file has been granted to someone else or not. Then, it will reject the write request of the other client if the lease has been acquired by someone else, who is currently writing into the very file.

Related questions

0 votes
asked Jun 8, 2020 in HDFS by Robindeniel
0 votes
asked Jun 8, 2020 in HDFS by Robindeniel
...