Error: Invalid value “sasl_ssl” for configuration property “security.protocol”

好久不见. 提交于 2020-02-04 07:28:12

问题


I'm using node-rdkafka to connect to IBM MessageHub with the following options:

var options = {
  // 'debug': 'all',
  'metadata.broker.list': brokers,
  'security.protocol': 'sasl_ssl',
  'ssl.ca.location': '/etc/ssl/certs',
  'sasl.mechanisms': 'PLAIN',
  'sasl.username': username,
  'sasl.password': password,
  'api.version.request': true,
  'broker.version.fallback': '0.10.2.1',
  'log.connection.close': false,
  'dr_msg_cb': true
}

The client is running on IBM Kubernetes Service pod (Ubuntu).
Please advice. Thanks.


回答1:


It means you were missing some dependencies (SSL or SASL) when you installed/built node-rdkafka.

On ubuntu make sure you have libsasl2-dev, libsasl2-modules and libssl-dev installed.

You can check our node-rdkafka sample Dockerfile for a working example.



来源:https://stackoverflow.com/questions/52674088/error-invalid-value-sasl-ssl-for-configuration-property-security-protocol

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!