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

Aniket Mokashi commented on PIG-3047:
-------------------------------------

This is excellent. option 3 should be good enough to cover scope of this jira.
A few comments on implementation-
* if(!UriUtil.isHDFSFile(location)) - is that required? 
* Can you use Utils.getPathLength to get the size of files.



> Check the size of a relation before adding it to distributed cache in 
> Replicated join
> -------------------------------------------------------------------------------------
>
>                 Key: PIG-3047
>                 URL: https://issues.apache.org/jira/browse/PIG-3047
>             Project: Pig
>          Issue Type: Improvement
>            Reporter: Julien Le Dem
>            Assignee: Ido Hadanny
>             Fix For: 0.12.1
>
>         Attachments: fix_pig_3047.diff
>
>
> Right now if someone makes a mistake and put the large relation last, Pig 
> will copy a huge file into distributed cache and it will take a long time 
> before the job eventually fails. It would be better to check before copying 
> the relation that it is of reasonable size.
> <1 GB ?



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Reply via email to