如何使用librdkafka设置明文协议(无SASL)的用户名和密码?



我正在尝试将具有 conf 属性security.protocol生产者连接到明文。 如何在调用RdKafka::Producer::create之前将usernamepassword传递给Conf对象?

set电话似乎都不合适。 我阅读了有关 sasl 的文档以获取灵感,但它没有帮助。

使用:

sasl.username
sasl.password

最新更新