- 2074 Bhadra · 4 marks
Role of HDFS in Hadoop
Short answer
HDFS is Hadoop's storage layer: it splits files into 128 MB blocks, replicates them across DataNodes for fault tolerance, and provides data locality so MapReduce tasks run near the data. It supports high-throughput streaming access and runs on commodity hardware.
What is the role of Hadoop Distributed File System in Hadoop?
HDFS (Hadoop Distributed File System) is the storage layer of Hadoop. It stores very large files across many commodity machines and provides the data to MapReduce and other processing engines. It is modelled on the Google File System.
Roles of HDFS in Hadoop
- Distributed storage of big data: a large file is split into blocks (128 MB default) that are spread across many DataNodes, so storage can grow to petabytes by adding nodes.
- Fault tolerance: each block is replicated (default 3 copies) on different nodes and racks. If a node fails, the NameNode re-replicates the lost blocks from the surviving copies, so no data is lost.
- Data locality for processing: HDFS tells the scheduler where blocks are stored, so MapReduce tasks run on the node (or rack) that holds the data. This moves computation to data instead of moving data, and saves network bandwidth.
- High-throughput streaming access: it is optimised for write-once, read-many access to large files, rather than low-latency random access.
- Stores job input and output: MapReduce reads input from HDFS and writes final output back to it.
- Runs on commodity hardware: cheap machines are enough, since reliability comes from software replication.
Architecture
Client --> NameNode (metadata)
| |
+--data----> DataNode1 DataNode2 DataNode3
(blocks replicated across nodes)
The NameNode (master) stores the namespace and block locations, and DataNodes (slaves) store the blocks.
✓ Answer checked by Claude Opus 5.5 (high effort)
Related questions
- Google File System architecture · Big Data Technologies, chapter 2 · asked 2×
- Distributed system in big data example · Big Data Technologies, chapter 1
- Data analytics process and distributed computing · Big Data Technologies, chapter 1
- Distributed system and Hadoop · Information System, chapter 8
- File system layers; linked list vs index · Operating System, chapter 5
- File system layout, i-node, backup · Operating System, chapter 5
- File system layout; i-node vs linked list · Operating System, chapter 5