hadoop-hdfs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pushparaj Motamari <pushpara...@gmail.com>
Subject HDFS Snapshots
Date Tue, 21 Oct 2014 14:20:00 GMT
Hi,

Consider the scenario below.

/A/file.txt  in HDFS

1. file.txt size = 0.5*(Size of Block).

2. Take Snapshot on directory A

3. Append to the file.txt, making its size as 0.6*(Size of Block)

4. Remove/delete the snapshot on folder taken in step2.

My Question
--------------------------------
1. How does HDFS handle when it has to decrease the size of block, as above
when we delete the snapshot the block size has to be reduces to its
previous size. This code is handled at datanode or Namnode?

Thank You

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message