GitHub user viirya opened a pull request:
https://github.com/apache/spark/pull/7424
[SPARK-9067][SQL] Close reader in NewHadoopRDD early if there is no more
data
JIRA: https://issues.apache.org/jira/browse/SPARK-9067
According to the description of the JIRA ticket, calling `reader.close()`
only after the task is finished will cause memory and file open limit problem
since these resources are occupied even we don't need that anymore.
This PR simply closes the reader early when we know there is no more data
to read.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/viirya/spark-1 close_reader
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/7424.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #7424
----
commit 67569dae4697ecd0ab5b7b71d928b6d51a69a4c7
Author: Liang-Chi Hsieh <[email protected]>
Date: 2015-07-15T17:14:54Z
Close reader early if there is no more data.
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]