Writing and Reading
This lesson explains the write and read pipelines in HDFS.
We'll cover the following...
Writing and Reading
We’ll now study the interactions between a client application and HDFS when reading or writing files.
Write path
A client initiates the write process. A client could be an application using the Java API or a person working with the hdfs command line utility. The flow of this interaction between client and HDFS goes like this:
-
A client buffers data on the local disk initially. It waits for one HDFS-block worth of data to accumulate before contacting the Namenode.
-
The Namenode, once contacted by the client, verifies if the file exists and that the client has the required permissions to create that file. If these checks pass, the Namenode makes a corresponding change in its ...
Access this course and 1400+ top-rated courses and projects.