【发布时间】:2020-07-14 20:15:23
【问题描述】:
MapPartitions 导致连接过多,而 foreachPartitions 没有返回任何内容。有没有其他办法?
【问题讨论】:
标签: database mongodb scala apache-spark connection
MapPartitions 导致连接过多,而 foreachPartitions 没有返回任何内容。有没有其他办法?
【问题讨论】:
标签: database mongodb scala apache-spark connection
当我进行 coalesce (20) 时,它在地图分区上运行良好,它创建了 20 个连接。
【讨论】: