我尝试解决很多问题,但出现错误
{ Error: No provider for SASL mechanism GSSAPI: recompile librdkafka with libsasl2 or openssl support. Current build options: PLAIN SASL_SCRAM
at Function.createLibrdkafkaError [as create] (/mnt/c/Repo/firm-datahub-api/node_modules/node-rdkafka/lib/error.js:260:10)
at /mnt/c/Repo/firm-datahub-api/node_modules/node-rdkafka/lib/client.js:187:28
message: 'No provider for SASL mechanism GSSAPI: recompile librdkafka with libsasl2 or openssl support. Current build options: PLAIN SASL_SCRAM',
code: -172,
errno: -172,
origin: 'kafka' }
不确定如何解决。 我的生产者配置为
producer = new Kafka.Producer({
'debug': 'protocol,security',
'dr_cb': true,
'socket.keepalive.enable': true,
'message.max.bytes': 17000000,
'metadata.broker.list': process.env.MY_KAFKA_BROKER_LIST,
'queue.buffering.max.ms': 100,
'sasl.kerberos.keytab': "mytab.keytab",
'sasl.kerberos.principal': 'mytab@domain.INT',
'sasl.kerberos.service.name': 'myServiceName',
'security.protocol': 'sasl_plaintext'
});
有人可以帮忙吗?