You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Sean Owen (JIRA)" <ji...@apache.org> on 2017/11/24 12:30:01 UTC

[jira] [Updated] (SPARK-22526) Document closing of PortableDataInputStream in binaryFiles

     [ https://issues.apache.org/jira/browse/SPARK-22526?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sean Owen updated SPARK-22526:
------------------------------
       Priority: Minor  (was: Major)
    Component/s: Documentation
     Issue Type: Improvement  (was: Bug)
        Summary: Document closing of PortableDataInputStream in binaryFiles  (was: Spark hangs while reading binary files from S3)

[~imranece59] I also think it's fairly clear you need to close these streams in the user code, but some more documentation couldn't hurt. How about opening a PR to add a note about closing with try-finally in the scaladoc, and perhaps improving any tests of this code to do the same?

> Document closing of PortableDataInputStream in binaryFiles
> ----------------------------------------------------------
>
>                 Key: SPARK-22526
>                 URL: https://issues.apache.org/jira/browse/SPARK-22526
>             Project: Spark
>          Issue Type: Improvement
>          Components: Documentation, Spark Core
>    Affects Versions: 2.2.0
>            Reporter: mohamed imran
>            Priority: Minor
>   Original Estimate: 168h
>  Remaining Estimate: 168h
>
> Hi,
> I am using Spark 2.2.0(recent version) to read binary files from S3. I use sc.binaryfiles to read the files.
> It is working fine until some 100 file read but later it get hangs indefinitely from 5 up to 40 mins like Avro file read issue(it was fixed in the later releases)
> I tried setting the fs.s3a.connection.maximum to some maximum values but didn't help.
> And finally i ended up using the spark speculation parameter set which is again didnt help much. 
> One thing Which I observed is that it is not closing the connection after every read of binary files from the S3.
> example :- sc.binaryFiles("s3a://test/test123.zip")
> Please look into this major issue!      



--
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