crunch-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Josh Wills <>
Subject Re: Read an empty directory
Date Mon, 18 May 2015 15:30:33 GMT
Not a really clean way; one option would be to call getSize(Configuration)
on the underlying Source you're reading from, and if it returns zero,
substitute in a Pipeline.emptyPCollection() in the place where you would
have called


On Mon, May 18, 2015 at 6:09 AM, David Ortiz <> wrote:

> Hello,
>      Is there a way to get my pipeline to load an empty collection instead
> of throwing an exception when I pass in a globbed path that doesn't match
> anything?  It's part of a list of paths that otherwise match things.
> Thanks,
>      Dave

Director of Data Science
Cloudera <>
Twitter: @josh_wills <>

View raw message