You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Yuming Wang (Jira)" <ji...@apache.org> on 2021/05/19 08:20:00 UTC

[jira] [Commented] (SPARK-35441) InMemoryFileIndex load all files into memroy

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

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

What is your driver memory?

> 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: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org