C-Sharp | Java | Python | Swift | GO | WPF | Ruby | Scala | F# | JavaScript | SQL | PHP | Angular | HTML
Spark ArchitectureThe Spark follows the master-slave architecture. Its cluster consists of a single master and multiple slaves. The Spark architecture depends upon two abstractions:
Resilient Distributed Datasets (RDD)The Resilient Distributed Datasets are the group of data items that can be stored in-memory on worker nodes. Here,
We will learn about RDD later in detail. Directed Acyclic Graph (DAG)Directed Acyclic Graph is a finite direct graph that performs a sequence of computations on data. Each node is an RDD partition, and the edge is a transformation on top of data. Here, the graph refers the navigation whereas directed and acyclic refers to how it is done. Let's understand the Spark architecture. Driver ProgramThe Driver Program is a process that runs the main() function of the application and creates the SparkContext object. The purpose of SparkContext is to coordinate the spark applications, running as independent sets of processes on a cluster. To run on a cluster, the SparkContext connects to a different type of cluster managers and then perform the following tasks: -
Cluster Manager
Worker Node
Executor
Task
Next TopicSpark Components
|