开发者社区> 问答> 正文

spark中的Repartition和Coalesce的关系是什么?

spark中的Repartition和Coalesce的关系是什么?

展开
收起
游客y244y7ln2rlpa 2021-12-06 23:04:40 292 0
1 条回答
写回答
取消 提交回答
  • spark中的Repartition和Coalesce的关系是两者都是用来改变RDD的partition数量的,repartition底 层调用的就是coalesce方法: coalesce( numPartitions , shuffle = true )

    2021-12-06 23:05:04
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
Hybrid Cloud and Apache Spark 立即下载
Scalable Deep Learning on Spark 立即下载
Comparison of Spark SQL with Hive 立即下载