Spark Asia-Pacific Research series "Spark Combat Master Road"-3rd Chapter Spark Architecture design and Programming Model section 2nd: Spark Architecture Design (2)

Source: Internet
Author: User

Three, the rdd of Spark

in Spark everything is based on the RDD and core:

The APIs for each rdd are as follows:

The numerous rdd that are given in the Spark official documentation:

The actions in the Rdd are divided into transformations and actions two types:

Here's an example to illustrate the use of the RDD:

There are also two special RDD:

They are all controlling operations:

The RDD is executed in parallel:

IV, Spark's high fault tolerance mechanism lineage

based on Dag diagrams, lineage is lightweight and efficient:

There is a lineage relationship between operations, each of which is concerned only with its parent operation, the data of each shard is not affected by each other, and when an error occurs, only the specific parts of a single split can be restored:

Spark Asia-Pacific Research series "Spark Combat Master Road"-3rd Chapter Spark Architecture design and Programming Model section 2nd: Spark Architecture Design (2)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.