beam-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (BEAM-2628) AvroSource.split() sequentially opens every matched file
Date Fri, 21 Jul 2017 00:07:00 GMT

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

ASF GitHub Bot commented on BEAM-2628:
--------------------------------------

Github user asfgit closed the pull request at:

    https://github.com/apache/beam/pull/3590


> AvroSource.split() sequentially opens every matched file
> --------------------------------------------------------
>
>                 Key: BEAM-2628
>                 URL: https://issues.apache.org/jira/browse/BEAM-2628
>             Project: Beam
>          Issue Type: Bug
>          Components: sdk-java-core
>            Reporter: Eugene Kirpichov
>            Assignee: Eugene Kirpichov
>             Fix For: 2.2.0
>
>
> When you do AvroIO.read().from(filepattern), during splitting of AvroSource the filepattern
gets expanded into N files, and then for each of the N files we do this: https://github.com/apache/beam/blob/v2.0.0/sdks/java/core/src/main/java/org/apache/beam/sdk/io/AvroSource.java#L259
> This is very slow. E.g. one job was reading 15,000 files, and it took almost 2 hours
to split the source because opening each file and reading schema was taking about 0.5s.
> I'm not quite sure why we need the file metadata while splitting...



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message