我正在尝试使用node-rdkafka
并看到以下错误连接到 IBM Event Streams(以前的 Message Hub)
/Users/VMac/Documents/VMAC/Code/GIT/kafka-log-simulator/node_modules/node-rdkafka/lib/client.js:54
this._client = new SubClientType(globalConf, topicConf);
^
Error: Invalid value "sasl_ssl" for configuration property "security.protocol"
at Producer.Client (/Users/VMac/Documents/VMAC/Code/GIT/kafka-log-simulator/node_modules/node-rdkafka/lib/client.js:54:18)
at new Producer (/Users/VMac/Documents/VMAC/Code/GIT/kafka-log-simulator/node_modules/node-rdkafka/lib/producer.js:75:10)
at new Simulator (/Users/VMac/Documents/VMAC/Code/GIT/kafka-log-simulator/dist/Simulator.js:54:29)
at /Users/VMac/Documents/VMAC/Code/GIT/kafka-log-simulator/dist/index.js:107:33
at step (/Users/VMac/Documents/VMAC/Code/GIT/kafka-log-simulator/dist/index.js:52:23)
at Object.next (/Users/VMac/Documents/VMAC/Code/GIT/kafka-log-simulator/dist/index.js:33:53)
at /Users/VMac/Documents/VMAC/Code/GIT/kafka-log-simulator/dist/index.js:27:71
at new Promise (<anonymous>)
at __awaiter (/Users/VMac/Documents/VMAC/Code/GIT/kafka-log-simulator/dist/index.js:23:12)
at streamMessages (/Users/VMac/Documents/VMAC/Code/GIT/kafka-log-simulator/dist/index.js:102:12)
我在 StackOverflow 上尝试了其他答案,但没有运气。我正在macOS 10.15.7 (Catalina)上尝试这个