You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (JIRA)" <ji...@apache.org> on 2017/07/22 14:44:02 UTC

[jira] [Commented] (SPARK-21509) Add a config to enable adaptive query execution only for the last query execution.

    [ https://issues.apache.org/jira/browse/SPARK-21509?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16097353#comment-16097353 ] 

Apache Spark commented on SPARK-21509:
--------------------------------------

User 'jinxing64' has created a pull request for this issue:
https://github.com/apache/spark/pull/18713

>  Add a config to enable adaptive query execution only for the last query execution.
> -----------------------------------------------------------------------------------
>
>                 Key: SPARK-21509
>                 URL: https://issues.apache.org/jira/browse/SPARK-21509
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>    Affects Versions: 2.2.0
>            Reporter: jin xing
>
> Feature of adaptive query execution is a good way to avoid generating too many small files on HDFS, like mentioned in SPARK-16188.
> When feature of adaptive query execution is enabled, all shuffles will be coordinated. The drawbacks:
> 1. It's hard to balance the num of reducers(this decides the processing speed) and file size on HDFS
> 2. It generates some unnecessary shuffles(https://github.com/apache/spark/blob/master/sql/core/src/main/scala/org/apache/spark/sql/execution/exchange/EnsureRequirements.scala#L101)
> 3. It generates lots of jobs, which have extra cost for scheduling.
> We can add a config and enable adaptive query execution only for the last shuffle.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org