What is the stage & job & task of Spark, and the principle of Division __spark

Source: Internet
Author: User

These concepts are easily confusing and need to be written over the article to comb

What is Spark's stage & job & task, and how it is divided


Stage is a very important concept in spark,

An important basis for dividing stage in a job is whether a shuflle occurs, that is, whether the data is reorganized (reorganizing the data).

A lot of tasks are executed within a stage, and after all tasks in the same stage, the task in the next stage can be relied upon DAG.

A job has a number of tasks, each set of tasks can be a stage
Task is another important concept in spark,

Tasks are closely linked to concepts such as the partition block, which are the logical units that execute the job, and are executed in the CPU core of each executor in the task
a Job is a larger logical concept than task and stage,

Job can be thought of as an action in driver or a program submitted by Spark-submit, and there are many action in our program, all of which correspond to a lot of jobs.



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.