Spark Concept Grooming

Source: Internet
Author: User

1) Spark usually defines the shuffle operation as dividing the stage boundary, in fact there are two types of stages: Shufflemaptask and Resulttask. Resulttask is the output, the output is called Resulttask, are caused by the stage division, such as the following code:

Rdd.parallize (1). foreach (println)

Within each stage, there must be a shufflemaptask or a resulttask, because they are the basis for dividing the stage and the boundary between the stage. All the tasks in a stage are finally submitted to TaskScheduler in Taskset form, andSpark implements three different TaskScheduler , including LocalSheduler , ClusterScheduler and MesosScheduler .

2) Actions generate a job that triggers a job submission, so a job that we submit from the client may be divided into multiple jobs. However, if there is no other action after an action, that is, the action is the last action, the action is independent of a stage, not a job. (Ref. 0)

3) The task is divided into Shufflemaptask and Resulttask (refer to 1).

Spark Concept Grooming

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.