Apache Spark Rdd's Rdd checkpoint

Source: Internet
Author: User
Tags spark rdd

Check points for Rdd

The RDD cache can be saved to memory, local file system, or Tachyon after the first calculation is completed. With caching, spark avoids repetitive computations on the RDD and can greatly increase the computational speed. However, if the cache is missing, it needs to be recalculated. If the calculations are particularly complex or time-consuming, the impact of cache loss on the entire job cannot be overlooked. To avoid the overhead of cache loss recalculation, Spark introduces a checkpoint mechanism.

The cache is written directly to the user-defined storage level (the storage level defines the media for cache storage, now supports memory, local file system, and Tachyon) to write to different media at the end of the calculation. And the checkpoint is different, it is after the calculation is completed, re-establish a job to calculate. To avoid duplication of calculations, it is recommended to cache the RDD first so that the checkpoint can be done quickly.

Apache Spark Rdd's Rdd checkpoint

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.