Error: Invalid value "SASL_SSL" for configuration property "security.protocol"
See original GitHub issueEnvironment Information
- OS [e.g. Mac, Arch, Windows 10]: Fedora 31
- Node Version [e.g. 8.2.1]: 12.16.3
- NPM Version [e.g. 5.4.2]: 6.14.4
- C++ Toolchain [e.g. Visual Studio, llvm, g++]: g++
- node-rdkafka version [e.g. 2.3.3]: 2.9.0
Steps to Reproduce
node kafka.js
node-rdkafka Configuration Settings
const kafka = require('node-rdkafka')
const USERNAME = <USERNAME>
const PASSWORD = <PASSWORD>
const kafkaConf = {
"group.id": "cloudkarafka-example",
"metadata.broker.list": <BROKER_LIST>,
"socket.keepalive.enable": true,
"security.protocol": "SASL_SSL",
"sasl.mechanisms": "SCRAM-SHA-256",
"sasl.username": USERNAME,
"sasl.password": PASSWORD,
"debug": "generic,broker,security"
};
const consumer = new kafka.KafkaConsumer(kafkaConf);
consumer.on("ready", arg => {
console.log(`Consumer ${arg.name} ready`);
consumer.subscribe(<SOME_TOPIC>);
consumer.consume();
});
consumer.on('error', err => {
console.log("Consumer Error: " + err);
});
Additional context
this._client = new SubClientType(globalConf, topicConf);
^
Error: Invalid value "SASL_SSL" for configuration property "security.protocol"
Issue Analytics
- State:
- Created 3 years ago
- Comments:5
Top Results From Across the Web
Invalid value "SASL_SSL" for configuration property "security ...
Description Hi, When trying to connect to kafka consumer using golang, getting below error : [ 2019_12_12_12:45:05 ] ----> Kafka Consumer ...
Read more >Invalid value "sasl_ssl" for configuration property "security ...
It means you were missing some dependencies (SSL or SASL) when you installed/built node-rdkafka. On ubuntu make sure you have libsasl2-dev ...
Read more >Configuring PLAIN - Confluent Documentation
Enable SASL/PLAIN and the security protocol for Control Center in the etc/confluent-control-center/control-center.properties file. confluent.controlcenter.
Read more >rdkafka security protocol sasl error : r/rust - Reddit
Dear fellow friends, I dunno who to turn to. I can't for the life of me figure out this error: 'producer error: KafkaError...
Read more >Kafka 3.3 Documentation
bin/kafka-server-start.sh config/kraft/server.properties ... Added a new Serde type Void to represent null keys or null values from input topic.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I reinstall the package and it’s working, thanks all
make sure you have openssl installed then set CPPFLAGS and LDFLAGS
example:
CPPFLAGS=-I/usr/local/opt/openssl/include LDFLAGS=-L/usr/local/opt/openssl/lib npm install node-rdkafka@2.8.1