Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to set Compression config when using AvroWriter #1725

Open
richiesgr opened this issue Nov 30, 2020 · 3 comments
Open

Unable to set Compression config when using AvroWriter #1725

richiesgr opened this issue Nov 30, 2020 · 3 comments

Comments

@richiesgr
Copy link

Hi
I would like to add more on this because I check it now
The problem is that Avro doesn't support Gzip compression by default.
The problem is that Avro and the message writer both use the same configuration params:
secor.compression.codec
So if you put org.apache.hadoop.io.compress.GzipCodec you get an exception because Avro writer try to use it and fail
If you put null (no compression) so the MessageWriter fail with an exception because it try to instance a class with that
If put empty it fails because there you must put value

So I don't know what to put here because I try to Big query to read the files and don't thing it support something else than Gzip or uncompressed. and you can't set neither !!

Originally posted by @richiesgr in #482 (comment)

@HenryCaiHaiying
Copy link
Contributor

HenryCaiHaiying commented Nov 30, 2020 via email

@richiesgr
Copy link
Author

Hi
Yes I've already made the modification.
Don't know if it's something that can interest someone for a PR
If yes I can push a PR

@HenryCaiHaiying
Copy link
Contributor

HenryCaiHaiying commented Dec 2, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants