The blocks of a file and the blocks of the snapshot are the same.
(i.e. There is no data copying when creating snapshots)
Therefore the blocks are not removed from datanode disks if a file is removed.

Thanks,
Akira

(2014/08/20 15:22), juil cho wrote:
hadoop version 2.4.1.

I have tested the snapshot.

1. upload file,  /tmp/test.avi

2. create snapshot, /tmp snap1

3. delete file, /tmp/test.avi

4. moved to the Trash, /user/hadoop/.Trash/tmp/test.avi

5. file deleted in trash.

6. *but, blocks is not deleted in datanode disk. why??*

7. delete snapshot(snap1)

8. blocks is deleted in datanode disk. why???

I do not understand. Why not remove the block on the disk if the snapshot?


Reply via email to