You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2022/01/25 13:46:00 UTC
[jira] [Work logged] (AVRO-3266) Output stream incompatible with MagicS3GuardCommitter
[ https://issues.apache.org/jira/browse/AVRO-3266?focusedWorklogId=714473&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-714473 ]
ASF GitHub Bot logged work on AVRO-3266:
----------------------------------------
Author: ASF GitHub Bot
Created on: 25/Jan/22 13:45
Start Date: 25/Jan/22 13:45
Worklog Time Spent: 10m
Work Description: steveloughran commented on pull request #1431:
URL: https://github.com/apache/avro/pull/1431#issuecomment-1021197566
are you using the new methods in `PathOutputCommitter` above what OutputCommitter uses? if so, you could just use reflection to invoke them. this will work with old releases and FileOutputCommitter. as well as new code with custom committers for s3a, abfs and gcs
--
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: issues-unsubscribe@avro.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Issue Time Tracking
-------------------
Worklog Id: (was: 714473)
Time Spent: 40m (was: 0.5h)
> Output stream incompatible with MagicS3GuardCommitter
> -----------------------------------------------------
>
> Key: AVRO-3266
> URL: https://issues.apache.org/jira/browse/AVRO-3266
> Project: Apache Avro
> Issue Type: Bug
> Components: java
> Reporter: Michiel de Jong
> Priority: Minor
> Labels: pull-request-available
> Time Spent: 40m
> Remaining Estimate: 0h
>
> Avro's output stream can not be used in combination with the MagicS3GuardCommitter
> {code:java}
> Error: java.lang.ClassCastException: class org.apache.hadoop.fs.s3a.commit.magic.MagicS3GuardCommitter cannot be cast to class org.apache.hadoop.mapreduce.lib.output.FileOutputCommitter{code}
> The reason for this problem is that AvroOutputFormatBase.getAvroFileOutputStream tries to cast the outputcommiter to a FileOutputCommitter.
> It can be solved by casting to a PathOutputCommitter instead (which is a superclass of both the FileOutputCommitter and the MagicS3GuardCommitter)
--
This message was sent by Atlassian Jira
(v8.20.1#820001)