admin管理员组文章数量:1405115
We have a job in spark (databricks) that we are joining ~60 tables.
The job starts by joining the main table with some others tables with SortMergeJoin. This is working fine.
The last step of the query is to join around 20 very small tables and in the execution plan its doing a BroadcastHashjoin with the small tables as expected.
As far as we understood here the problem is that its grouping all 20 broadcasthashjoins into a single task, the operation is very slow and we are heartbeats timeouts probably due to OOM probably.
We were expecting Spark to start with the first table perform the broadcasthashjoin then the second table perform the broadcasthashjoin and so on... and not group all broadcasthashjoins into a single task and we have this performance issue.
One solution I can think is to cache the dataframe after each join without being sure if its going to work 100%.
Is this behavior to group all broadcasthashjoins in a single task expected and due to the Whole-stage code ?
Do you have any other solution to suggest ?
本文标签: performanceSpark groups broadcast hash join in a single taskStack Overflow
版权声明:本文标题:performance - Spark groups broadcast hash join in a single task - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744884967a2630432.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论