Issue with writing Avro files directly to S3 bucket #3049
clarence-coppinger
started this conversation in
General
Replies: 1 comment 1 reply
-
Hey @clarence-coppinger we recommend you reach out to the Avro team with this issue. We can't help troubleshooting issues with third-party libraries. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When using apache Avro library to write Avro files directly to s3 bucket using the AmazonS3#putObject(String bucketName, String key, InputStream input, ObjectMetadata metadata) method.
Upon trying to read the files from the bucket using Avro tools (command line tool to read Avro files) we see this exception: “org.apache.avro.AvroRuntimeException: Malformed data. Length is negative: -25669624”
When we use a similar process to write files to GCS the files are able to be processed after being uploaded without issue. My question here is: Are we using the wrong method to upload these files? When we write the Avro files locally and upload them we can read them afterwards but trying to write them directly to the bucket seems to cause an issue.
Beta Was this translation helpful? Give feedback.
All reactions