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

1 Answer

0 votes
by

Can multiple clients write into an HDFS file concurrently?

Multiple clients cannot write into an HDFS file at same time. Apache Hadoop HDFS follows single writer multiple reader models. The client which opens a file for writing, the NameNode grant a lease. Now suppose, some other client wants to write into that file. It asks NameNode for the write operation. NameNode first checks whether it has granted the lease for writing into that file to someone else or not. When someone already acquires the lease, then, it will reject the write request of the other client.

Related questions

+1 vote
asked Nov 7, 2020 in Hadoop by SakshiSharma
0 votes
asked Jun 21, 2023 in Hadoop by sharadyadav1986
...