当前位置:网站首页>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
边栏推荐
猜你喜欢
随机推荐
【Day1】VMware软件安装
【UiPath2022+C#】UiPath Switch
Spark源码-任务提交流程之-6-sparkContext初始化
C语言的一些小常识
【UiPath2022+C#】UiPath 数据操作
传输层协议(TCP3次握手)
【Day8】磁盘及磁盘的分区有关知识
入门文档09 独立的watch
图片压缩失效问题
UiPath简介
账号与权限管理
The problem of redirecting to the home page when visiting a new page in dsf5.0
通过单总线调用ds18b20的问题
IP地址及子网的划分
IP数据包格式(ICMP协议与ARP协议)
每日一题-括号生成-0721
Hard Disk Partitioning and Permanent Mounting
如何使用Houdini进行程序化优化?
lvm logical volume and disk quota
【Day8】Knowledge about disk and disk partition







