- 2074 Bhadra · 8 marks
Distributed system in big data example
Short answer
A Hadoop cluster stores a 1 TB weblog in 28 MB HDFS blocks replicate acros DataNodes. MapReduce map tasks run locally on each block; reducers combine counts. Node failures trigger re-eecution from replicas, demonstrating scalable, fault-tolerant distributed storage and parallel processing for big data.
Explain with example about the distributed system in Big Data.
A distributed system is a collection of independent computers (nodes) connected by a network that appears to the user as a single system. In big data, data and processing are spread over many nodes so that very large datasets can be stored and analysed in parallel.
Key characteristics
- Many nodes, no shared memory, communication by messages
- Scalability by adding nodes
- Fault tolerance through replication
- Transparency (location, replication, failure hidden from the user)
- Concurrency of many tasks
Common architecture in big data
+----------------+
| Master node | (NameNode / JobTracker)
+--------+-------+
+--------+--------+
| | |
+----v--+ +---v---+ +--v----+
|Worker1| |Worker2| |Worker3|
| data | | data | | data |
| + CPU | | + CPU | | + CPU |
+-------+ +-------+ +-------+
The master keeps metadata and schedules work. Workers store data blocks and compute locally.
Example 1: Hadoop cluster (word count over logs)
A 1 TB web log is uploaded to HDFS. It is split into 128 MB blocks and each block is stored on three different DataNodes. A MapReduce job sends the map code to the nodes that already hold the blocks. Each mapper counts words in its block, and reducers combine the counts. If one node fails, the block is read from another replica and the task is re-run.
Example 2: Google search
Web pages are stored in GFS over thousands of machines and indexed by MapReduce. A search query is sent to many index servers in parallel, and the results are merged and returned within a fraction of a second.
Other examples
Facebook using HDFS for its data warehouse and HBase for messaging, Amazon S3 and DynamoDB, and Cassandra clusters for NoSQL.
Advantages
Handles petabytes, low-cost hardware, high availability, and fast parallel processing.
Challenges
Network latency, node failures, consistency of replicas, clock synchronisation and security.
Components in an HDFS-based system
- NameNode (master): keeps the file tree, block locations and replication information.
- DataNodes (workers): store block replicas and send heartbeats and block reports.
- Client: reads and writes by asking the NameNode for locations and then talking to DataNodes.
- Processing layer: YARN/MapReduce schedules tasks near the blocks.
Why distribute big data
| Need | How a distributed system helps |
|---|---|
| Storage of PB data | Many disks combined into one namespace |
| Speed | Parallel reading and processing |
| Failures | Replication and task re-execution |
| Cost | Commodity hardware |
Design issues
Transparency (users should not see node locations), consistency of replicas, scheduling and load balancing, security, and handling of partial failure.
✓ Answer checked by Claude Opus 5.5 (high effort)
Related questions
- Why distributed computing for big data · Big Data Technologies, chapter 1
- Data analytics process and distributed computing · Big Data Technologies, chapter 1
- Role of data scientist in big data · Big Data Technologies, chapter 1 · asked 2×
- Big data trends, challenges, characteristics · Big Data Technologies, chapter 1
- Hybrid data in big data warehouse · Big Data Technologies, chapter 1
- Attributes of Big Data · Big Data Technologies, chapter 1
- Big data and its processing · Information System, chapter 8
- Distributed system and Hadoop · Information System, chapter 8
- Autonomous vs distributed system · Distributed System, chapter 1
- Models of distributed system · Distributed System, chapter 1