当前位置:网站首页>The spark operator - repartition operator
The spark operator - repartition operator
2022-08-05 06:11:00 【zdaiqing】
Source code
def repartition(numPartitions: Int)(implicit ord: Ordering[T] = null): RDD[T] = withScope {coalesce(numPartitions, shuffle = true)}- The bottom layer calls coalesce() to implement the repartitioning operation
- Mandatory shuffle operation
Repartition and coalesce relationship
- All operators are used to reset the number of partitions
- The bottom layer of repartition calls coalesce() to implement the repartition function
- repartition forces a shuffle operation
- coalesce decides whether to perform the shuffle operation according to the parameters
References
边栏推荐
猜你喜欢
随机推荐
ACL 和NAT
Getting Started 05 Using cb() to indicate that the current task is complete
Lua,ILRuntime, HybridCLR(wolong)/huatuo热更对比分析
每日一题-单调栈
IP地址及子网的划分
交换机原理
来来来,一文让你读懂Cocos Creator如何读写JSON文件
spark源码-任务提交流程之-2-YarnClusterApplication
入门文档09 独立的watch
每日一题-三数之和-0716(2)
IP数据包格式(ICMP协议与ARP协议)
Cocos Creator小游戏案例《棍子士兵》
每日一题-无重复字符的最长子串-0712
Getting Started Doc 08 Conditional Plugins
unity实现第一人称漫游(保姆级教程)
账号与权限管理
spark算子-map vs mapPartitions算子
硬核!Cocos开发面试必备十问,让你offer拿到手软
网络布线与数制转换
如何使用Houdini进行程序化优化?









