有没有办法对 Spark 中最常用的查询结果使用某种缓存?

Is there a way to use some kind of cache for results of the most often used queries in Spark?

有没有办法对 Spark 中最常用查询的结果使用某种缓存(或通过使用其他 Hadoop 库)?

假设您指的是缓存,那么您可以在返回的 RDD.

上调用确切的方法 (cache)