Saturday, 15 January 2011

Does deleting a file removes all replication files as well in hdfs -



Does deleting a file removes all replication files as well in hdfs -

does deleting file removes replication files in hdfs?

is trash way recover deleted files hdfs?

replication factor used internal framework fault tolerance? network or other failures happen?

i trying relate deleting file, recovery trash, replication factor in hdfs.

a file in hdfs can removed using rmr command. however, hdfs supports trash feature helps recover files in case of accidental deletion of data. when trash feature enabled, file moved .trash folder under user's hdfs directory.

however, internally how works hdfs create metadata in trash folder identity file , associated block info needs deleted 1 time fs.trash.interval time interval finish after file deleted . actual file contents i.e. replicated blocks of file still nowadays on original info nodes nowadays before delete operation.

if user wants recover deleted file, done delete metadata info .trash folder , original info anyways lying on datanodes usual.

to reply query, deleting file doesn't delete file contents , blocks datanodes.

hdfs

No comments:

Post a Comment