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

Invalid value for configuration property "compression.codec" #2496

Closed
4 of 7 tasks
lvfuchao opened this issue Aug 28, 2019 · 7 comments
Closed
4 of 7 tasks

Invalid value for configuration property "compression.codec" #2496

lvfuchao opened this issue Aug 28, 2019 · 7 comments

Comments

@lvfuchao
Copy link

Read the FAQ first: https://github.com/edenhill/librdkafka/wiki/FAQ

Hello edenhill,

Unable to create configuration for Kafka "compression.codec". as follow:
% Invalid value "gzip" for configuration property "compression.codec"
% Invalid value "zstd" for configuration property "compression.codec"

but use snappy and lz4 is ok。

Description

How to reproduce

<your steps how to reproduce goes here, or remove section if not relevant>

IMPORTANT: Always try to reproduce the issue on the latest released version (see https://github.com/edenhill/librdkafka/releases), if it can't be reproduced on the latest version the issue has been fixed.

Checklist

IMPORTANT: We will close issues where the checklist has not been completed.

Please provide the following information:

  • librdkafka version (release number or git tag): <v1.1.0>
  • Apache Kafka version: <2.12-2.3.0>>
  • librdkafka client configuration: <compression.codec [none, gzip, snappy, lz4, zstd]>
  • Operating system: <Linux ubuntu x86_64>
  • Provide logs (with debug=.. as necessary) from librdkafka
  • Provide broker log excerpts
  • Critical issue
@edenhill
Copy link
Contributor

Your librdkafka library was built without support for gzip (requires zlib1g-dev) and zstd (requires libzstd-dev).

@lvfuchao
Copy link
Author

ok I Know thanks

@mateusjunges
Copy link

@edenhill which library is required to build with support for snappy? I'm getting the same message but with snappy compression.

@edenhill
Copy link
Contributor

edenhill commented Jun 1, 2022

snappy is always builtin. What version of librdkafka are you using?

@mateusjunges
Copy link

version | 6.0.1
librdkafka version (runtime) | 1.6.2
librdkafka version (build) | 1.6.2.255

@edenhill
Copy link
Contributor

edenhill commented Jun 1, 2022

Check how librdkafka is built. With the standard configure & make it will always include snappy support.

@vutien071294
Copy link

Hello edenhill,
i use php 7.4 and i installed zlib1g-dev, but error :
Invalid value "gzip" for configuration property "compression.codec"
still happens.
image
can you help me

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

4 participants