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

Question:

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

Asked By: ValerieLampkin

||

Answers:

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:

  • libsasl2-dev
  • libsasl2-modules

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

Answered By: Mickael Maison

Mickael. Could you kindly tell me how to install those packages in a Linux Redhat environment? (version 8)
i tried to install using yum install " sudo yum install gcc libffi-devel python-devel python-pip python-wheel openssl-devel libsasl2-devel openldap-devel"
But i got below error:
Error: Unable to find a match: python-devel python-pip python-wheel libsasl2-devel

So could u please advise?

Answered By: Amira Hussein