[
https://issues.apache.org/jira/browse/BEAM-6713?focusedWorklogId=211243&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-211243
]
ASF GitHub Bot logged work on BEAM-6713:
----------------------------------------
Author: ASF GitHub Bot
Created on: 11/Mar/19 19:46
Start Date: 11/Mar/19 19:46
Worklog Time Spent: 10m
Work Description: kyle-winkelman commented on pull request #7893:
[BEAM-6713] Add withMaxNumWritersPerBundle from WriteFiles to FileIO …
URL: https://github.com/apache/beam/pull/7893#discussion_r264399407
##########
File path: sdks/java/core/src/main/java/org/apache/beam/sdk/io/AvroIO.java
##########
@@ -431,7 +431,8 @@
.setNumShards(0)
.setCodec(TypedWrite.DEFAULT_SERIALIZABLE_CODEC)
.setMetadata(ImmutableMap.of())
- .setWindowedWrites(false);
+ .setWindowedWrites(false)
+
.setMaxNumWritersPerBundle(WriteFiles.DEFAULT_MAX_NUM_WRITERS_PER_BUNDLE);
Review comment:
I have also come up with another approach to my issue: #7929. So it may be
unnecessary to expose this if that is the consensus. I just want to highlight
that it was a huge pain to work around this limitation so I could set a higher
max. I had to copy most of the FileIO class because its all private internal
stuff so that I could call WriteFiles on my own with a higher max.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 211243)
Time Spent: 1h 20m (was: 1h 10m)
> FileIO and TextIO unable to alter WriteFiles maxNumWritersPerBundle
> -------------------------------------------------------------------
>
> Key: BEAM-6713
> URL: https://issues.apache.org/jira/browse/BEAM-6713
> Project: Beam
> Issue Type: Improvement
> Components: sdk-java-core
> Reporter: Kyle Winkelman
> Priority: Major
> Time Spent: 1h 20m
> Remaining Estimate: 0h
>
> When attempting to run a batch workflow with a FileIO.write() I was getting
> job failures due to WriteFiles.DEFAULT_MAX_NUM_WRITERS_PER_BUNDLE causing a
> significant amount of data to be shuffled. My issues would be solved by
> increasing this and luckily WriteFiles already has withMaxNumWritersPerBundle
> but unfortunately FileIO and TextIO do not.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)