PrepAway - Latest Free Exam Questions & Answers

What happens when client tries to write a file to/reports/myreport.txt?

You set up the Hadoop cluster using NameNode Federation. One NameNode manages the/users
namespace and one NameNode manages the/data namespace. What happens when client tries
to write a file to/reports/myreport.txt?

PrepAway - Latest Free Exam Questions & Answers

A.
The file successfully writes to /users/reports/myreports/myreport.txt.

B.
The client throws an exception.

C.
The file successfully writes to /report/myreport.txt. The metadata for the file is managed by the
first NameNode to which the client connects.

D.
The file writes fails silently; no file is written, no error is reported.

Explanation:
Note:
* The current HDFS architecture allows only a single namespace for the entire cluster. A single
Namenode manages this namespace. HDFS Federation addresses limitation of current
architecture by adding support multiple Namenodes/namespaces to HDFS file system.
* HDFS Federation enables multiple NameNodes in a cluster for horizontal scalability of
NameNode. All these NameNodes work independently and don’t require any co-ordination. A
DataNode can register with multiple NameNodes in the cluster and can store the data blocks for
multiple NameNodes.

2 Comments on “What happens when client tries to write a file to/reports/myreport.txt?


Leave a Reply

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