我收到 ERROR Failed to initialize SASL authentication: SASL handshake failed (start (-4)): SASL(-4): no mechanism available: No worthy mechs found when trying to use Message Hub Bluemix service with node-rdkafka
为什么会发生这种情况?
我收到 ERROR Failed to initialize SASL authentication: SASL handshake failed (start (-4)): SASL(-4): no mechanism available: No worthy mechs found when trying to use Message Hub Bluemix service with node-rdkafka
为什么会发生这种情况?
此错误表明 librdkafka(库 node-rdkafka 包装)尚未使用 SASL 支持进行编译。
请确保您在系统上安装了所需的依赖项并通过 npm 重新安装 node-rdkafka
对于 Linux:
libsasl2-dev
libsasl2-modules
对于 macOS 和更多详细信息,请参阅我们关于 librdkafka 的文档:https ://github.com/ibm-messaging/message-hub-samples/blob/master/docs/librdkafka.md