HDFS is hadoop distributed file system; in simple terms a file is stored in a distributed machines. The Hadoop framework was designed considering reliability, throughput, network I/O, and disk I/O; but compromised with latency, which is best in RDBMS.

These points are discussed in part I ie; HDFS Architecture HDFS Architecture .

How Read and Write operations are performed in HDFS

HDFS Write

HDFS Architecture

HDFS Write- Selection of the Data Nodes

How Data Nodes are selected by Name Nodes

HDFS Architecture

Simulation on block distribution

Node Distance

How is distance calculated in HDFS?

Idea of distance is based on bandwidth.

HDFS Architecture

The only possible cases for calculating distance are-

HDFS Read

HDFS Architecture

If D7 fails, next D8 is picked

Failure cases,