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

KafkaError (Client config error: Unsupported value "snappy" for configuration property "compression.codec": snappy not enabled at buildtime compression.type snappy.) #637

Open
65001 opened this issue Nov 30, 2023 · 2 comments

Comments

@65001
Copy link

65001 commented Nov 30, 2023

I'm setting up a StreamConsumer and I'm doing:

let consumer : StreamConsumer = ClientConfig::new()
.set("compression.type", "snappy")
.set("security.protocol", "SASL_PLAINTEXT")
.set("sasl.mechanisms", "SCRAM-SHA-512")
...
.create()
.unwrap()

I'm using version 0.36 with the following features: cmake-build, ssl, zstd and libz on Windows 11.

When I connect to the kafka broker, I'm seeing, "KafkaError (Client config error: Unsupported value "snappy" for configuration property "compression.codec": snappy not enabled at buildtime compression.type snappy.)

Can you help me figure out what's going on?

@65001 65001 changed the title Snappy Compression feature? KafkaError (Client config error: Unsupported value "snappy" for configuration property "compression.codec": snappy not enabled at buildtime compression.type snappy.) Nov 30, 2023
@65001
Copy link
Author

65001 commented Dec 1, 2023

This only seems to be occuring on Windows. When I ran the same code on Debian through a docker container it worked fine.

@chklauser
Copy link

chklauser commented Apr 11, 2024

With topics that let the producer control compression, the error message might look like this:

ERROR rdkafka::client: librdkafka: Global error: NotImplemented (Local: Not implemented): Decompression (codec 0x2) of message at 99758045 of 3446 bytes failed: Local: Not implemented

This, too, is on Windows.

rdkafka = { version = "0.36.2", default-features = false, features = ["cmake-build", "tokio", "ssl-vendored", "zstd", "libz-static"] }

Might be fixed by #586 🤞

If not, might be related to this open issue in the rdkafka upstream: confluentinc/librdkafka#4063 ("CMake does not define WITH_SNAPPY")

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