火花什么是高速缓存,坚持区别? [英] Spark-What is the difference between cache and persist?

查看:154
本文介绍了火花什么是高速缓存,坚持区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

RDD 持久性方面,有哪些缓存之间的的差异()坚持()火花?

In terms of RDD persistence, What are the differences between cache() and persist() in spark ?

推荐答案

通过缓存(),您只使用默认的存储级别MEMORY_ONLY。
随着坚持(),你可以指定你想要的存储级别。

With cache(), you use only the default storage level MEMORY_ONLY. With persist(), you can specify which storage level you want.

使用坚持()如果你想指定另一个存储级别比MEMORY_ONLY到RDD
<一href=\"http://spark.apache.org/docs/latest/programming-guide.html#which-storage-level-to-choose\">http://spark.apache.org/docs/latest/programming-guide.html#which-storage-level-to-choose

Use persist() if you want to assign another storage level than MEMORY_ONLY to the RDD http://spark.apache.org/docs/latest/programming-guide.html#which-storage-level-to-choose

这篇关于火花什么是高速缓存,坚持区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆