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

Yuming Wang commented on SPARK-35441:
-------------------------------------

Please increase your driver memory. or you should merge small files if these 
20,000,000 files contain many small files.


> InMemoryFileIndex load all files into memroy
> --------------------------------------------
>
>                 Key: SPARK-35441
>                 URL: https://issues.apache.org/jira/browse/SPARK-35441
>             Project: Spark
>          Issue Type: Improvement
>          Components: Spark Core
>    Affects Versions: 2.3.1
>            Reporter: Zhang Jianguo
>            Priority: Minor
>
> When InMemoryFileIndex is initialated, it'll load all files of ${rootPath}. 
> If there're thousands of files, it could lead to OOM.
>  
> https://github.com/apache/spark/blob/0b3758e8cdb3eaa9d55ce3b41ecad5fa01567343/sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/InMemoryFileIndex.scala#L66



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to