Machine-translated by Google. Questions are authored in English.
Top

Discussion

Role of "data streamer" in Hadoop Distributed File System (HDFS) is :

  • A.Send a request to the Data Node to send list of Name Node to store replica of first block
  • B.Send a request to the Name Node to get a list of suitable Data Nodes to store replica of first block
  • C.Streaming service to indicate failure of Data Nodes
  • D.Streaming service to indicate failure of Name Nodes

Answer: B

The DataStreamer sends a request to the Name Node to get a list of suitable Data Nodes to store replica of first block.

When a client writes a file to HDFS, the output stream splits the data into packets and places them on a data queue. The DataStreamer consumes that queue: it asks the NameNode to allocate a new block by choosing suitable DataNodes for the replicas, then streams the packets to the first DataNode in the resulting pipeline, which forwards them to the next.

The first option reverses the roles of the two node types. Failures of DataNodes are detected through heartbeats and acknowledgements, not by a streaming service, and the NameNode is not monitored this way.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.