Skip to main content
InterviewHubPRO
Section Overview
Q2

Question 2 of 50

Part 1: Basic & Foundational Concepts (Junior / Entry-Level)

4%
Apache Spark Big Data (50 Qs)•Part 1: Basic & Foundational Concepts (Junior / Entry-Level)

What are the core components of the Apache Spark Architecture (Driver, Cluster Manager, Executors)?

senior LevelCode ExampleComponentsSystem Design

In Simple Words:

  1. Driver: The central process executing the main function of your program. Converts code into tasks, schedules them, and coordinates with Executors via the SparkContext.
  2. Cluster Manager: Allocates physical hardware resources across nodes (e.g. Kubernetes, Apache YARN, Mesos, or Spark Standalone).
  3. Executors: Worker processes running on cluster nodes. Responsible for executing tasks assigned by the Driver, storing cached data partitions in RAM/disk, and returning results.
text
Spark Cluster Topology:
                [Driver Program]
                 (SparkContext)
                       │
             [Cluster Manager] (YARN / K8s / Standalone)
                       │
      ┌────────────────┴────────────────┐
      ▼                                 ▼
[Worker Node 1]                   [Worker Node 2]
 ├─ Executor 1                     ├─ Executor 2
 │   ├─ Task 1 (Core)              │   ├─ Task 1 (Core)
 │   └─ Task 2 (Core)              │   └─ Task 2 (Core)
 └─ Cache (RAM)                    └─ Cache (RAM)