-
Notifications
You must be signed in to change notification settings - Fork 905
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
Consumer is unable to read for zstd compressed topic #858
Comments
Is there a reason you are not using the binary wheels of confluent-kafka-python, which includes librdkafka built with zstd? |
You've lost me already. I followed the install instructions on the README. Is there another way to install confluent-kafka-python? I simply used:
When I experience the error, I then ventured deeper and eventually followed the instructions linked in the README: http://docs.confluent.io/current/installation.html#installation-apt Even after installing librdkafka as specified there, I still get the above mentioned error. |
Can you set |
@edenhill Here's the first few lines of the debug log. I removed the "Broadcasting state change" and sanitized the hostnames
|
What is your broker version? |
I'm not 100% sure how to check the Kafka Broker version but the kafka jar is:
|
Thank you ,that's Kafka 2.2.1 (the 2.11 is the scala version) |
This is from the AK source: * - {@link Errors#UNSUPPORTED_COMPRESSION_TYPE} If a fetched topic is using a compression type which is
* not supported by the fetch request version Which implies that compression.type=zstd is configured on the topic (broker-side config), but the client is using a FetchRequest version that is too old (<10). We'll fix this for the upcoming v1.5.0 release (mid june). |
That's correct, the topic is configured with compression.type=zstd. I was able to test this workaround compression.type=produce on a test instance and this worked. Oddly, the debug still prints the proto errors:
However, the messages arrive at the consumer instead of just an error. |
Those are debug logs and can be ignored |
Ubuntu 20.04 packages this library:
You can also install the library from pypi through The trouble is Would it be possible to synchronize these packages? |
We don't maintain the Ubuntu packages, and I don't see much point in using them since both Go and Python have packaging and dependency systems builtin which will always be (vastly) more up to date than anything Debian/Ubuntu packages. |
Has this been resolved?. I am working on an issue in faust and the broker level zstd compression problem stems from this package. |
Yes, it was fixed in May 2020 |
Description
Consumer is unable to read for zstd compressed topic.
Error is:
I have the latest librdkafka as specified in the install instructions:
And the latest confluent-kafka-python
OS: Ubuntu 18.04.4 LTS amd64
How to reproduce
Checklist
Please provide the following information:
confluent_kafka.version()
andconfluent_kafka.libversion()
):{...}
'debug': '..'
as necessary)The text was updated successfully, but these errors were encountered: