pythonapache-kafkaibm-cloudconfluent-platformmessage-hub

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""}


Solution

  • This error indicates that librdkafka (the library confluent-kafka-python wraps) has not been compiled with SASL support.

    Please ensure you have the required dependencies installed on your system and reinstall librdkafka

    For Linux:

    For macOS and more details, see our documentation about librdkafka: https://github.com/ibm-messaging/message-hub-samples/blob/master/docs/librdkafka.md