写在前面
如果你没有兴趣/时间阅读全文,那么可以先试着设置以下几个参数:
- set spark.sql.adaptive.skewedJoin.enabled=true;
- set spark.sql.adaptive.skewedJoinWithAgg.enabled=true,
- set spark.sql.adaptive.multipleSkewedJoin.enablled=true
- set spark.sql.adaptive.allowBroadcastExchange.enabled=true
- set spark.sql.adaptive.forceOptimizeSkewedJo∈=true
- set spark.sql.adaptive.multipleSkewedJoinWithAgg0rWin.enabled=true
- set spark.sql.adaptive.skewedJoinSupportUnion.enabled=true