简体   繁体   English

Kafka Error INVALID_ARG No Such configuration property sasl.mechanisms 使用 confluent-kafka-python 时

[英]Kafka Error INVALID_ARG No Such configuration property sasl.mechanisms when using confluent-kafka-python

When trying to use the Message Hub Bluemix service with confluent-kafka-python, I am getting the ERROR Uncaught exception: , KafkaError{code=_INVALID_ARG,val=-186,str="No such configuration property: "sasl.mechanisms""}尝试将 Message Hub Bluemix 服务与 confluent-kafka-python 结合使用时,我收到 ERROR Uncaught exception: , KafkaError{code=_INVALID_ARG,val=-186,str="No such configuration property: "sasl.mechanisms"" }

This error indicates that librdkafka (the library confluent-kafka-python wraps) has not been compiled with SASL support.此错误表明 librdkafka(库 confluent-kafka-python 包装)尚未使用 SASL 支持进行编译。

Please ensure you have the required dependencies installed on your system and reinstall librdkafka请确保您的系统上安装了所需的依赖项并重新安装 librdkafka

For Linux:对于 Linux:

  • libsasl2-dev libsasl2-dev
  • libsasl2-modules libsasl2-模块

For macOS and more details, see our documentation about librdkafka: https://github.com/ibm-messaging/message-hub-samples/blob/master/docs/librdkafka.md有关 macOS 和更多详细信息,请参阅我们关于 librdkafka 的文档: https://github.com/ibm-messaging/message-hub-samples/blob/master/docs/librdkafka.md

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何使用 confluent-kafka-python 确定是否存在 kafka 主题 - How to determine if a kafka topic exists using confluent-kafka-python confluent-kafka-python 生产者和消费者中的 error_cb - error_cb in confluent-kafka-python producers and consumers 如何使用 confluent-kafka-python 删除主题 - How can I delete Topics using confluent-kafka-python 无法使用 confluent-kafka-python 从 Kafka Topic 消费到新的消费者组 - Cannot consume from Kafka Topic using confluent-kafka-python to a new consumer-group 如何使用 confluent-kafka-python 获取 Kafka 主题的最后一条消息的偏移量? - How do I get the the offset of last message of a Kafka topic using confluent-kafka-python? Confluent-Kafka-Python:获取每个主题分区的延迟 - Confluent-Kafka-Python: Get lag per topic partition 在 confluent-kafka-python 中设置主题日志保留 - Setting Topic log retention in confluent-kafka-python confluent-kafka-python:没有参数的Consumer.commit() - confluent-kafka-python: Consumer.commit() with no parameters confluent-kafka-python json_producer:无法识别的字段:schemaType - confluent-kafka-python json_producer : Unrecognized field: schemaType Confluent Kafka:如何在 confluent-kafka-python 客户端中指定序列化和分区? - Confluent Kafka: How is serialization and partitioning specified in confluent-kafka-python client?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM