Why should I differentiate between Mr and Spark's shuffle

Source: Internet
Author: User
Tags shuffle

The shuffle phase of Mr is illustrated by a picture:

The output of the map phase is placed in the buffer, and a smaller buffer maintains the index of the key-value pair + partition number in the buffer. When the buffer is nearly full, its index is sorted and then spill to disk. When all the data is spill to disk, the fragmented files are merged, and the process of sorting and merging also occurs to reduce the amount of data transferred to the reducer. Reducer pull the final result from the mapper via an HTTP connection, and note that the desired portion is pulled along the partition. For a reducer because the data may come from multiple upstream, you still have to continue in order, and finally make a reduce operation.

Spark's shuffle will be written later.

Why should I differentiate between Mr and Spark's shuffle

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.