The Procedure of Writing the Data from the Data-Node

The Client sends a create request to the name-node. The name-node processes the request by performing a few checks like the existence of a file with the same name; if the client sending the request has the authority to create the file; and other protocols that are defined by the administrator.

The Procedure of Writing the Data

Once these checks are matched the name-node allocates the data-node and the block address according to the algorithm set up by the administrator. The allocated addresses are sent back to the client, who then create an Output Stream. The data is broken down into equal chunks of smaller data. These chunks are then arranged into a waiting queue. This output stream is used to write the chunk of data from the waiting queue into the block. The chunk of data, while being written into the data-node is sent into the ack queue.

If the replication factor is defined as 3, there will be 3 data-nodes allocated to save the data. These blocks are serialized. That means once the data is copied into the 1st data-node only then will it be saved in 2nd data node and after that the 3rd data node. After being written into all the 3 data-nodes the acknowledgement is sent to the Output Stream. Then that data is deleted from the ack queue.
Previous
Next Post »

1 comments:

Click here for comments
Unknown
admin
2 June 2017 at 04:35 ×

I really enjoy simply reading all of your weblogs. Simply wanted to inform you that you have people like me who appreciate your work...Thanks
Web Designing Training in Chennai | Big Data Analytics Training in Chennai

Congrats bro Unknown you got PERTAMAX...! hehehehe...
Reply
avatar

Popular Posts