The Procedure of Reading the Data from the Data-Node

The client sends an open request to the Name-Node. The open request contains the name of the file that the client wants to open. The name node searches the index for that particular file and returns the file with its block address. Then the client, on receiving the block-address issues the read command to the data-nodes, thus, creating an Input-Stream to write the data. The data node writes the data into the Input Stream that has been created.



As the 1st block to data is read from the file system, the address of the 2nd block is relayed to client from the name-node which in turn sends it to the data-node, so that the Input Stream can read the next block data. After the reading is completed, a close command is issued from the client that closes the Input Stream.
Oldest

Popular Posts