eejbyfeldt commented on a change in pull request #1618:
URL: https://github.com/apache/avro/pull/1618#discussion_r832945888
##########
File path:
lang/java/mapred/src/main/java/org/apache/avro/mapreduce/AvroOutputFormatBase.java
##########
@@ -85,6 +86,15 @@ protected static CodecFactory
getCompressionCodec(TaskAttemptContext context) {
return CodecFactory.nullCodec();
}
+ private Path getWorkPathFromCommitter(TaskAttemptContext context) throws
IOException {
+ try {
+ OutputCommitter committer = getOutputCommitter(context);
+ return (Path)
committer.getClass().getMethod("getWorkPath").invoke(committer);
+ } catch (ReflectiveOperationException e) {
+ throw new AvroRuntimeException("Committer does not have method
getWorkPath", e);
Review comment:
Add in
https://github.com/apache/avro/pull/1618/commits/095d4b4e7af33054ffead0257adef3e20e2e2d55
.
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]