What happens when two clients try to write into the same HDFS file?
HDFS supports exclusive writes only. When the first client contacts the name-node to open the file for writing, the name-node grants a lease to the client to create this file. When the second client tries to open the same file for writing, the name-node will see that the lease for the file is already granted to another client, and will reject the open request for the second client.
Related Questions
- What if I didn write down the correct answers and try to retake the test but fail it, what happens then? Will I need to keep taking the test till I pass it again??
- What happens if I create a 64-bit offset format netCDF file and try to open it with an older netCDF application that hasn been linked with netCDF 3.6?
- When I try to print PDFs, I get an error saying Acrobat Reader can write to the file (i.e., the printer), that the disk is full. What can I do?