| What happens when two clients access the same file in the HDFS?
When first client connect the NameNode to open file for writing then NameNode grants a lease to the client to update or create the file. And when same file ask by second client tries to open for writing then NameNode will notice that the lease for file is already granted to another client so it will reject the open request for second client. | | |