Get the App
SLTechnology News&Howtos  ›  Servers  › 

What are the RDD operations of Spark

Shulou Source: shulou.com Published: 2022-05-31 19:25:44 10月25日 Update

This article mainly explains "what are the RDD operations of Spark". The content of the explanation is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "what are the RDD operations of Spark"?

RDD of Spark

Everything in Spark is based and centered on RDD:

The API for each RDD is as follows:

There are many RDD given in the Spark official documentation:

There are two types of operations in RDD: transformations and actions:

Here is an example to illustrate the use of RDD:

There are also two special RDD:

They are all controlling operations:

RDD is executed in parallel:

High Fault tolerance Mechanism lineage of Spark

Based on DAG diagrams, lineage is lightweight and efficient:

Operations have a lineage relationship with each other. Each operation only cares about its parent operation, and the data of each shard does not affect each other. When an error occurs, you only need to restore a specific part of a single Split:

Thank you for your reading, the above is the content of "what is the RDD operation of Spark?" after the study of this article, I believe you have a deeper understanding of what the RDD operation of Spark has, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

Tags: Learning between content time special two examples single basic official that is ideas situations data documents articles more mechanism core knowledge Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Technology Huawei Linux Apple NVidia