Building Data Streaming Applications with Apache Kafka
by Chanchal Singh, Manisha Sethi, Manish Kumar, Anshul Joshi
Pillars of Spark
The following are the important pillars of Spark:
Resilient Distributed Dataset (RDD): RDD is the backbone of Spark. RDD is an immutable, distributed, fault tolerant collection of objects. RDDs are divided into logical partitions which are computed on different worker machines.
In short, if you read any file in Spark, the data of that file will together form a single, large RDD. Any filtering operation on this RDD will produce a new RDD. Remember, RDD is immutable. This means that every time we modify the RDD, we have a new RDD. This RDD is divided into logical chunks known as partitions, which is a unit of parallelism in Spark. Each chunk or partition is processed on a separate distributed machine.
The following diagram ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access