How to handle data skew in the spark data frame for outer join

南笙酒味 提交于 2019-12-04 09:20:29

Please consider the following points:

1) Since you have 60 executors and 10 cores per executor your partitions should be at least 60 x 10 = 600 partitions

2) In your case you have 270GB / 1128 ~ 241MB this should approximately be the partition size which looks quite big to me (considering data exchange during shuffling). Try first to re-partition to something more realistic for instance 8K or even 16K.

3) Since I can not see clearly how many executors participate on job execution you need to check it again and figure out the exact number of participating executors and if data is equally distributed. If data deviation between executors is low then your data is well distributed otherwise you face skewing.

4) If after re-partition skewing insists try to redistribute the join keys as described here

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!