When datasets expand beyond the memory capacity of a single high-end server (1 TB+), single-node Python and Pandas break down. Big Data Architecture solves this challenge through distributed cluster computing — dividing datasets across hundreds of worker nodes using Apache Spark.
Figure 37.1: Big Data Architecture — S3/HDFS Storage, Spark In-Memory Compute, Delta Lake & BI.
The 5 V's of Big Data in Modern Enterprises
- Volume: The scale of data storage, transitioning from gigabytes on local disk to petabytes and exabytes across distributed cloud object stores (Amazon S3, Azure ADLS Gen2, Google Cloud Storage).
- Velocity: The speed at which new records are generated — such as high-frequency financial trading ticks, IoT sensor streams, and global mobile telemetry requiring real-time sub-second ingestion.
- Variety: Diverse structural schemas including tabular SQL tables, nested JSON documents, audio recordings, video streams, and raw server syslogs.
- Veracity: The trustworthiness, provenance, and hygiene of data. Managing corrupt values, network drops, and schema drift across distributed nodes.
- Value: The ultimate business utility derived from transforming raw data into automated operational actions and measurable financial revenue.
Generational Shift: Hadoop MapReduce vs. Apache Spark
| Feature |
Hadoop MapReduce (1st Gen) |
Apache Spark (Modern Standard) |
| Compute Medium |
Disk-based (writes to HDFS between steps). |
In-memory RAM (100x faster execution). |
| Execution Graph |
Rigid 2-stage Map → Reduce cycles. |
Flexible Directed Acyclic Graph (DAG) optimizer. |
| Iterative Machine Learning |
Extremely slow (unusable for deep gradient steps). |
Native MLlib library with cached memory partitions. |
| Streaming Data |
Batch-only processing. |
Unified streaming (Structured Streaming) & batch engine. |
Spark Driver vs. Worker Architecture
When an application launches on a Spark cluster, the Driver Node coordinates with the Cluster Manager (Kubernetes, YARN, or Standalone) to allocate resources across Worker Nodes. Each worker runs an Executor process that executes specific task partitions in parallel and stores in-memory cached state.
Spark Catalyst Optimizer & Tungsten Engine
Just like relational database planners compile SQL queries, Spark's Catalyst Optimizer automatically reorders filter predicates, optimizes join algorithms (e.g., Broadcast Hash Joins), and compiles JVM bytecode dynamically via the Project Tungsten in-memory engine to run queries at native hardware speeds.
University Viva & Exam Checklist
What is an RDD Lineage Graph and how does Spark achieve fault tolerance without data replication? (Answer: Instead of duplicating in-memory state, Spark maintains an execution DAG of transformations. If a worker node crashes, the Driver re-computes only the lost partition from the original source file using its lineage graph).
Frequently Asked Questions (FAQ) - Student & Interview Review
Q1. What are the 5 V's of Big Data?
Volume (sheer scale of bytes), Velocity (speed of incoming data generation), Variety (structured, semi-structured, unstructured formats), Veracity (trustworthiness and data hygiene), and Value (actionable business utility).
Q2. Why is Apache Spark 100x faster than legacy Hadoop MapReduce?
Hadoop MapReduce writes intermediate state back to physical hard disks (HDFS) between every Map and Reduce phase, incurring crippling I/O penalties. Spark processes iterative computations entirely in-memory using Resilient Distributed Datasets (RDDs) and DAG execution graphs.
Q3. What is the Driver vs. Executor node architecture in Spark?
The Driver program runs your main() code, creates the SparkSession, builds the execution DAG, and coordinates work. Executors are worker nodes in the cluster that execute assigned tasks in parallel and store cached data partitions in RAM.
Q4. What is an RDD (Resilient Distributed Dataset)?
An RDD is an immutable, fault-tolerant, lazily evaluated, distributed collection of objects partitioned across cluster nodes. If a worker node crashes, Spark reconstructs lost partitions automatically using RDD lineage graphs.
Q5. What are Transformations vs Actions in Spark?
Transformations (map, filter, groupBy) build a lazy execution DAG without running immediately. Actions (count, collect, write, show) trigger physical execution and return results.
Explore Related Data Science Tutorials & Next Steps
Broaden your statistical analysis, Python data wrangling, and production engineering expertise: