Spark cache RDD don't show up on Spark History WebUI - Storage

孤人 提交于 2019-12-04 01:56:25

问题


I am using Spark-1.4.1 in CDH-5.4.4.

I use rdd.cache() function but it show nothing in Storage tab on Spark History WebUI

Does anyone has the same issues? How to fix it?


回答1:


Your RDD will only be cached once its been evaluated, the most common way to force evaluation (and therefor populate the cache) is to call count e.g:

rdd.cache() // Nothing in storage page yet & nothing cached
rdd.count() // RDD evaluated, cached & in storage page.


来源:https://stackoverflow.com/questions/31715698/spark-cache-rdd-dont-show-up-on-spark-history-webui-storage

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!