hadoop常見問題wikiFAQ

http://wiki.apache.org/hadoop/FAQ

3.10. 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.


發佈了144 篇原創文章 · 獲贊 75 · 訪問量 182萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章