nerdexam
Cloudera

CCA-500 · Question #23

You use 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…

The correct answer is D. The file will be re-replicated automatically after the NameNode determines it is under-replicated. During put command if file got copied at two location (where replication factor is 3) then during heart beat and block report send by dn to nn, namenode will find the under replicated blocks and will replicate it.

Troubleshooting

Question

You use 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 file in this situation?

Options

  • AThe file will remain under-replicated until the administrator brings that node back online
  • BThe cluster will re-replicate the file the next time the system administrator reboots the NameNode
  • CThis will be immediately re-replicated and all other HDFS operations on the cluster will halt until
  • DThe file will be re-replicated automatically after the NameNode determines it is under-replicated

How the community answered

(69 responses)
  • A
    4% (3)
  • B
    9% (6)
  • C
    3% (2)
  • D
    84% (58)

Explanation

During put command if file got copied at two location (where replication factor is 3) then during heart beat and block report send by dn to nn, namenode will find the under replicated blocks and will replicate it.

Topics

#HDFS replication#DataNode failure#under-replication#automatic re-replication

Community Discussion

No community discussion yet for this question.

Full CCA-500 Practice