You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@oozie.apache.org by "Rohini Palaniswamy (Jira)" <ji...@apache.org> on 2019/10/29 23:55:00 UTC
[jira] [Commented] (OOZIE-3548) FS EL action to compute size of
glob
[ https://issues.apache.org/jira/browse/OOZIE-3548?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16962547#comment-16962547 ]
Rohini Palaniswamy commented on OOZIE-3548:
-------------------------------------------
Would suggest https://github.com/apache/pig/blob/trunk/src/org/apache/pig/LoadFunc.java#L230-L250 instead
> FS EL action to compute size of glob
> ------------------------------------
>
> Key: OOZIE-3548
> URL: https://issues.apache.org/jira/browse/OOZIE-3548
> Project: Oozie
> Issue Type: Improvement
> Reporter: Jacob Tolar
> Priority: Major
>
> There is an FS el function (dirSize) that computes the size of a single directory.
>
> It would be helpful if oozie could give the size of a list or glob of directories (for example, to get the total size of an input dependency with multiple paths).
>
> I'd like to use this to compute a parallelism value in Pig. Pig sort of supports this with the bytesPerReducer setting but that settings is applied to the entire job; I'd like more flexibility.
>
> Unfortunately, correctly supporting both a list of filese (as provided by oozie) and globs requires copying in this method:
> [https://github.com/apache/hadoop/blob/trunk/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapred/FileInputFormat.java#L498-L538]
>
> [~rohini] [~puru] I am happy to submit a patch. Any suggestions before I do so?
--
This message was sent by Atlassian Jira
(v8.3.4#803005)