Created
June 30, 2020 21:26
-
-
Save rohitdholakia/7cc53b5fbf6eda29c572f994e881154a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from confluent_kafka import admin, ConfigResource | |
config = {'bootstrap.servers': 'broker:9092'} | |
a = admin.AdminClient(config) | |
fs = a.describe_configs([ConfigResource(ConfigResource.Type.TOPIC, 'topic_name')]) | |
for f, item in fs.items(): print(item.result()) # this works great | |
fs = a.describe_configs([ConfigResource.Type.GROUP, 'group_name']) | |
# this line causes it to die! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment