You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I see this library uses node-sinek which allows for running native or JS consumer/producers, but I don't see any way to force this library to use the new JS client? Both the native and JS clients use the same config with the noptions key in the newer versions of node-sinek and you only differentiate by loading different modules from the package. When I try to run kafka-streams though I get Error: You have to install node-rdkafka to use NConsumer. Looks like you are only able to use the older node-sinek JS client set with the options key?
Based on the KafkaFactory.js
if(this.config.noptions&&typeofthis.config.noptions==="object"){debug("creating new native kafka client");returnnewNativeKafkaClient(topic,this.config,this.batchOptions);}...debug("creating new js kafka client");returnnewJSKafkaClient(topic,this.config);
I see this library uses node-sinek which allows for running native or JS consumer/producers, but I don't see any way to force this library to use the new JS client? Both the native and JS clients use the same config with the
noptions
key in the newer versions of node-sinek and you only differentiate by loading different modules from the package. When I try to run kafka-streams though I getError: You have to install node-rdkafka to use NConsumer
. Looks like you are only able to use the older node-sinek JS client set with theoptions
key?Based on the
KafkaFactory.js
This seems incorrect based on the fact that the node-sinek JSConsumer/Producer also use
config.noptions
now https://github.com/nodefluent/node-sinek/blob/master/lib/kafkajs/JSConsumer.jsThe text was updated successfully, but these errors were encountered: