[ https://issues.apache.org/jira/browse/BEAM-2628?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Eugene Kirpichov closed BEAM-2628. ---------------------------------- Resolution: Fixed Fix Version/s: 2.2.0 > 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)