PrepAway - Latest Free Exam Questions & Answers

How will the cluster handle the replication of this file in this situation/

You are the hadoop fs –put command to add a file “sales.txt” to HDFS. This file is small enough

that it fits into a single block, which is replicated to three nodes in your cluster (with a replication
factor of 3). One of the nodes holding this file (a single block) fails. How will the cluster handle the
replication of this file in this situation/

PrepAway - Latest Free Exam Questions & Answers

A.
The cluster will re-replicate the file the next time the system administrator reboots the
NameNode daemon (as long as the file’s replication doesn’t fall two)

B.
This file will be immediately re-replicated and all other HDFS operations on the cluster will halt
until the cluster’s replication values are restored

C.
The file will remain under-replicated until the administrator brings that nodes back online

D.
The file will be re-replicated automatically after the NameNode determines it is under replicated
based on the block reports it receives from the DataNodes

5 Comments on “How will the cluster handle the replication of this file in this situation/

  1. Gaurav says:

    When data nodes send heart beat and block report to NN, there NN gets to know which file is under replicated and it performs the job and replicated file to maintain its replication factor. Here option D is correct.




    0



    0

Leave a Reply

Your email address will not be published. Required fields are marked *