You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Haitao Yao (JIRA)" <ji...@apache.org> on 2012/07/12 02:41:35 UTC

[jira] [Commented] (PIG-2812) Spill InternalCachedBag into only 1 file

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

Haitao Yao commented on PIG-2812:
---------------------------------

Shall we change the Parent class : org.apache.pig.data.DefaultAbstractBag or just modify the InternalCachedBag ? 
I don't know why DefaultAbstractBag writes a tmp file for every tuple.
In our own code base, I just modified the InternalCachedBag, because I don't want know the how the subclasses of DefaultAbstractBag gonna behave if I modify the whole spill logic .
I want to contribute to this.
thanks.

                
> Spill InternalCachedBag into only 1 file
> ----------------------------------------
>
>                 Key: PIG-2812
>                 URL: https://issues.apache.org/jira/browse/PIG-2812
>             Project: Pig
>          Issue Type: Bug
>          Components: data
>            Reporter: Haitao Yao
>             Fix For: 0.11
>
>         Attachments: aa.jpg
>
>
> I encountered a reducer's OOM because of java.io.DeleteOnExitHook. And I found out that the InternalCachedBag creates a seperate tmp file, and the tmp files is deleted on exit. So the file delete hook caused the OOM. 
> Why not just hold the tmp file handle and spill only one tmp file?
> Too many tmp files may block the tasktracker start process, if the tmp files are not cleaned on time and the tasktracker restarts at this specific time.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira