Kafka Error INVALID_ARG No Such configuration 属性 sasl.mechanisms when using confluent-kafka-python

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

当尝试将 Message Hub Bluemix 服务与 confluent-kafka-python 结合使用时,我收到 ERROR Uncaught exception: , KafkaError{code=_INVALID_ARG,val=-186,str ="No such configuration property: "sasl.mechanisms""}

此错误表明 librdkafka(库 confluent-kafka-python 包装)尚未使用 SASL 支持进行编译。

请确保您的系统上安装了所需的依赖项并重新安装 librdkafka

对于Linux:

  • libsasl2-dev
  • libsasl2-模块

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