- 2073 Magh · 4 marks
GFS vs HDFS architecture
Short answer
GFS is Google's proprietary, HDFS is open-source. Both have master (GFS: Master, HDFS: NameNode) and chunkservers/DataNodes. Chunk size: GFS 64MB, HDFS 128MB. Both replicate data thrice. Architecture: client contacts master for metadata, then reads/writes directly to chunkservers/DataNodes.
Compare GFS Vs HDFS and their corresponding architecture.
GFS (Google File System) is Google's proprietary distributed file system. HDFS (Hadoop Distributed File System) is the Apache open-source file system modelled on GFS.
| Basis | GFS | HDFS |
|---|---|---|
| Owner | Google, proprietary | Apache, open source |
| Master node | Master | NameNode |
| Slave nodes | Chunk servers | DataNodes |
| Unit of data | Chunk, 64 MB | Block, 128 MB (64 MB in old versions) |
| Replication | 3 by default | 3 by default |
| Writes | Multiple writers, record append supported | Write-once-read-many, single writer; append supported later |
| Metadata log | Operation log and checkpoints | EditLog and FsImage |
| Heartbeat | Master and chunk servers exchange HeartBeat | NameNode and DataNodes exchange heartbeats and block reports |
| Language | C++ | Java |
| Processing partner | Google MapReduce | Hadoop MapReduce |
Architecture
GFS: HDFS:
Client Client
| \ | \
| Master (metadata) | NameNode (metadata)
| |
Chunk servers DataNodes
[chunks x3] [blocks x3]
In both, the client asks the master/NameNode for locations, then reads and writes data directly with the chunk servers/DataNodes, so the master is not a bottleneck for data transfer.
✓ Answer checked by Claude Opus 5.5 (high effort)
Related questions
- MapReduce with GFS and HDFS · Information System, chapter 8
- Compare RISC and CISC architecture · Microprocessor, chapter 6 · asked 4×
- GFS vs other file systems · Big Data Technologies, chapter 2
- GFS master role in read/write · Big Data Technologies, chapter 2
- Stateful vs stateless; NFS architecture · Distributed System, chapter 2