You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Takeshi Yamamuro (JIRA)" <ji...@apache.org> on 2016/05/31 02:25:12 UTC

[jira] [Commented] (SPARK-15530) Partitioning discovery logic HadoopFsRelation should use a higher setting of parallelism

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

Takeshi Yamamuro commented on SPARK-15530:
------------------------------------------

I couldn't find the best solution for this issue though, it seems at least we'd better to limit #parallelism for this file listing before the v2.0 release
because users might get surprised at generating many tasks in case of large defaultParallellism.
I know we can control this by defaultParallelism though, this seems to be not suitable for that because it is a global option.
One of solutions is to set (paths.size / parallelPartitionDiscoveryThreshold + 1) at the number.
https://github.com/apache/spark/compare/master...maropu:SPARK-15530

Thought?


> Partitioning discovery logic HadoopFsRelation should use a higher setting of parallelism
> ----------------------------------------------------------------------------------------
>
>                 Key: SPARK-15530
>                 URL: https://issues.apache.org/jira/browse/SPARK-15530
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>            Reporter: Yin Huai
>
> At https://github.com/apache/spark/blob/master/sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/fileSourceInterfaces.scala#L418, we launch a spark job to do parallel file listing in order to discover partitions. However, we do not set the number of partitions at here, which means that we are using the default parallelism of the cluster. It is better to set the number of partitions explicitly to generate smaller tasks, which help load balancing. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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