Spark streaming Execution Process

Source: Internet
Author: User

Spark streaming is a spark-based stream batch processing engine. Its basic principle is to process input data in batches at a certain interval. When the batch processing interval is shortened to seconds, it can be used to process real-time data streams.

This section describes the execution process of spark streaming jobs.

Figure 1 execution process of spark streaming jobs

Specific process:

    1. Start the driver after the client submits the job. The driver is the master of the park job.
    2. Each job contains multiple executors, and each executor runs tasks in a thread mode. Spark streaming contains at least one executor task.
    3. The receiver generates a block after receiving the data, reports the blockid to the driver, and backs up the block to another executor.
    4. Receivertracker maintains the blockid reported by the reciver.
    5. The driver regularly starts jobgenerator, generates logical RDD based on the relationship of dstream, creates a jobset, and submits it to jobscheduler.
    6. Jobschedset schedules jobset and delivers it to dagscheduler. dagschedages generates stages based on the Logical RDD. Each stage contains one or more tasks.
    7. Taskschedtor schedules tasks to executor and maintains the running status of tasks.
    8. After task, stages, and jobset are complete, a single batch is complete.

       

Spark streaming Execution Process

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.