Skip to content

KafkaAdminClient: cannot pin version #1924

Closed
@simpleistao

Description

@simpleistao

I cannot set "api_version" for the KafkaAdminClient.

when api_version is not set, it would say,
"Broker version identified as 1.0.0. Set configuration api_version=(1,0,0) to skip auto check..."

So I tried to set "api_version: (1,0,0)" in the config. It would say,

Error message is:
IncompatibleBrokerVersion: Kafka Broker does not support the "MetadataRequest_v0" Kafka protocol. (this is from __matching_api_version() <== refresh_controller_id() in admin/client.py)

I started it pdb, and see that broker_api_versions returned is none (see attached screenshot).

I tried setting it to many other versions it would not work. However, I tried the same config for a consumer, and it would connect (but looks like it does not need to call __matching_api_version()). Could you please help?

Background:

  1. The only reason I want to pin the version is because I need to make sure I am parsing DescribeConfigResponse correctly, so I would like to pin to version. Please let me know if there is alternative.

  2. Kafka cluster version 2.3.0.

  3. kafka-python version 1.4.7

IMG_20191009_235325

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions