hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hairong Kuang <hair...@yahoo-inc.com>
Subject Re: deleting files from the DFS
Date Wed, 12 Mar 2008 17:57:47 GMT
> Case 1: Lets say there is a node which opens a file on the DFS to read. From
> my understanding, the open request will go to the namenode, which will tell
> it where the blocks of the file are. What if another node comes up and asks
> to delete that file. Of course this request will go to the namenode. How
> will the namenode respond in such a situation?

The namenode is stateless. So the delete request will go through. The first
request may fail.
> Case 2: Whenever a node wants to delete a file, I think the request first
> lands with the namenode? What happens to the replicas of the blocks of that
> file, as soon as that file gets deleted?

The replicas are scheduled to be deleted by the namenode. But there may be
some delay before they are actually deleted on the datanodes.


View raw message