Using node-rdkafka 2.5.1 version in my code to connect to kafka and it is crashing the connection after some timeWhat does “Rebalancing” mean in Apache Kafka context?Kafka Consumer not consuming dataHow to load balance Kafka Boostrap with haproxy?What's the different between ctrl-c and kill -9 when making kafka broker downKafka - org.apache.kafka.common.errors.NetworkExceptionKafka Consumer Group Rebalance and Group Coordinator deadKafka - Broker: Group coordinator not availableTrying to setup consumer and producer in KafkaKafka create too many TIME WAIT TCP connectionKafka generate huge extra data when creating new topics
Is there any set of 2-6 notes that doesn't have a chord name?
"It will become the talk of Paris" - translation into French
Should I tell my insurance company I'm making payments on my new car?
Mount a folder with a space on Linux
How can Charles Proxy change settings without admin rights after first time?
Why is the Turkish president's surname spelt in Russian as Эрдоган, with г?
Does image quality of the lens affect "focus and recompose" technique?
How come I was asked by a CBP officer why I was in the US?
Should I hide continue button until tasks are completed?
Why isn’t the tax system continuous rather than bracketed?
Short story with brother-sister conjoined twins as protagonists?
What is this particular type of chord progression, common in classical music, called?
How risky is real estate?
Does anycast addressing add additional latency in any way?
Alphabet completion rate
What does "THREE ALPHA in Virginia" mean?
Fedora boot screen shows both Fedora logo and Lenovo logo. Why and How?
How to append a matrix element by element?
What do you call the action of someone tackling a stronger person?
Does ultrasonic bath cleaning damage laboratory volumetric glassware calibration?
Intuitively, why does putting capacitors in series decrease the equivalent capacitance?
What happens when your group is victim of a surprise attack but you can't be surprised?
Correct spacing in the alignat*-environment
Bash echo $-1 prints hb1. Why?
Using node-rdkafka 2.5.1 version in my code to connect to kafka and it is crashing the connection after some time
What does “Rebalancing” mean in Apache Kafka context?Kafka Consumer not consuming dataHow to load balance Kafka Boostrap with haproxy?What's the different between ctrl-c and kill -9 when making kafka broker downKafka - org.apache.kafka.common.errors.NetworkExceptionKafka Consumer Group Rebalance and Group Coordinator deadKafka - Broker: Group coordinator not availableTrying to setup consumer and producer in KafkaKafka create too many TIME WAIT TCP connectionKafka generate huge extra data when creating new topics
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
From Node.js application I am trying to connect to Apache Kafka brokers(Version 0.11.0.3) using node-rdkafka client. The application is able to connect to kafka, subscribe to topics for a while but suddenly I see following error after about 1 and a half days in the logs(notice the timestamp). After these logs I can no longer see any successful connection to kafka. Which extra option do I need to avoid this error? There was no such error observed in Java codebase which is connecting to same kafka cluster.
Successful logs :
2019-03-15T07:15:24.364Z - [32minfo[39m: Producer receipt-svc#producer-1 ready
2019-03-15T07:15:24.410Z - [32minfo[39m: Consumer receipt-svc#consumer-2 ready
2019-03-15T07:15:24.411Z - [32minfo[39m: Subscribing to following topics : XXXX.XXXX.XXXX,XXXX.XXXX.XXXX,XXXX.XXXX.XXXX
2019-03-15T07:15:24.462Z - [32minfo[39m: Consumer receipt-svc#consumer-3 ready
2019-03-15T07:15:24.463Z - [32minfo[39m: Subscribing to following topics : XXXX.XXXX.XXXX
Error logs :
<------Kafka event log : Start ------->
2019-03-16T12:25:25.629Z - [32minfo[39m: severity=4, fac=METADATA, message=[thrd:main]: sasl_ssl://sl73kfkapp002.visa.com:8443/43: Metadata request failed: periodic refresh: Local: Required feature not supported by broker (0ms): Permanent
2019-03-16T12:25:25.630Z - [32minfo[39m: <------Kafka event log : End ------->
2019-03-17T12:30:26.301Z - [32minfo[39m: <------Kafka event log : Start ------->
2019-03-17T12:30:26.302Z - [32minfo[39m: severity=4, fac=METADATA, message=[thrd:main]: sasl_ssl://sl73kfkapp002.visa.com:8443/43: Metadata request failed: refresh unavailable topics: Local: Required feature not supported by broker (0ms): Permanent
2019-03-17T12:30:26.303Z - [32minfo[39m: <------Kafka event log : End ------->
Above logs are printed from following code piece
const consumer = new Kafka.KafkaConsumer(
"client.id": config["client.id"],
"group.id": config["group.id"],
"security.protocol": config["security.protocol"],
"metadata.broker.list": config["metadata.broker.list"],
"ssl.ca.location": config["ssl.ca.location"],
"ssl.certificate.location": config["ssl.certificate.location"],
"ssl.key.location": config["ssl.key.location"],
"ssl.key.password": this.machineKey.decrypt(config["ssl.key.password"]),
"sasl.kerberos.service.name": config["sasl.kerberos.service.name"],
"sasl.kerberos.principal": config["sasl.kerberos.principal"],
"sasl.kerberos.keytab": config["sasl.kerberos.keytab"]
,
"auto.offset.reset": "beginning",
"enable.auto.commit": true
);
consumer.on("event.log", function(log)
logger.info("<------Kafka event log : Start ------->");
logger.info(log);
logger.info("<------Kafka event log : End ------->");
);
consumer.on("ready", function(arg)
logger.info(`Consumer $arg.name ready`);
logger.info("Subscribing to following topics : " + topics);
consumer.subscribe(topics);
consumer.consume();
);
consumer.connect();
node.js apache-kafka
add a comment |
From Node.js application I am trying to connect to Apache Kafka brokers(Version 0.11.0.3) using node-rdkafka client. The application is able to connect to kafka, subscribe to topics for a while but suddenly I see following error after about 1 and a half days in the logs(notice the timestamp). After these logs I can no longer see any successful connection to kafka. Which extra option do I need to avoid this error? There was no such error observed in Java codebase which is connecting to same kafka cluster.
Successful logs :
2019-03-15T07:15:24.364Z - [32minfo[39m: Producer receipt-svc#producer-1 ready
2019-03-15T07:15:24.410Z - [32minfo[39m: Consumer receipt-svc#consumer-2 ready
2019-03-15T07:15:24.411Z - [32minfo[39m: Subscribing to following topics : XXXX.XXXX.XXXX,XXXX.XXXX.XXXX,XXXX.XXXX.XXXX
2019-03-15T07:15:24.462Z - [32minfo[39m: Consumer receipt-svc#consumer-3 ready
2019-03-15T07:15:24.463Z - [32minfo[39m: Subscribing to following topics : XXXX.XXXX.XXXX
Error logs :
<------Kafka event log : Start ------->
2019-03-16T12:25:25.629Z - [32minfo[39m: severity=4, fac=METADATA, message=[thrd:main]: sasl_ssl://sl73kfkapp002.visa.com:8443/43: Metadata request failed: periodic refresh: Local: Required feature not supported by broker (0ms): Permanent
2019-03-16T12:25:25.630Z - [32minfo[39m: <------Kafka event log : End ------->
2019-03-17T12:30:26.301Z - [32minfo[39m: <------Kafka event log : Start ------->
2019-03-17T12:30:26.302Z - [32minfo[39m: severity=4, fac=METADATA, message=[thrd:main]: sasl_ssl://sl73kfkapp002.visa.com:8443/43: Metadata request failed: refresh unavailable topics: Local: Required feature not supported by broker (0ms): Permanent
2019-03-17T12:30:26.303Z - [32minfo[39m: <------Kafka event log : End ------->
Above logs are printed from following code piece
const consumer = new Kafka.KafkaConsumer(
"client.id": config["client.id"],
"group.id": config["group.id"],
"security.protocol": config["security.protocol"],
"metadata.broker.list": config["metadata.broker.list"],
"ssl.ca.location": config["ssl.ca.location"],
"ssl.certificate.location": config["ssl.certificate.location"],
"ssl.key.location": config["ssl.key.location"],
"ssl.key.password": this.machineKey.decrypt(config["ssl.key.password"]),
"sasl.kerberos.service.name": config["sasl.kerberos.service.name"],
"sasl.kerberos.principal": config["sasl.kerberos.principal"],
"sasl.kerberos.keytab": config["sasl.kerberos.keytab"]
,
"auto.offset.reset": "beginning",
"enable.auto.commit": true
);
consumer.on("event.log", function(log)
logger.info("<------Kafka event log : Start ------->");
logger.info(log);
logger.info("<------Kafka event log : End ------->");
);
consumer.on("ready", function(arg)
logger.info(`Consumer $arg.name ready`);
logger.info("Subscribing to following topics : " + topics);
consumer.subscribe(topics);
consumer.consume();
);
consumer.connect();
node.js apache-kafka
What version are the brokers running? For issues like this, you probably want to open a ticket against node-rdkafka: github.com/Blizzard/node-rdkafka
– Mickael Maison
Mar 25 at 11:54
Broker version is 0.11.0.3. I'll add to my original post. Thanks for the link, would add there as well.
– hudibaba
Mar 26 at 4:46
add a comment |
From Node.js application I am trying to connect to Apache Kafka brokers(Version 0.11.0.3) using node-rdkafka client. The application is able to connect to kafka, subscribe to topics for a while but suddenly I see following error after about 1 and a half days in the logs(notice the timestamp). After these logs I can no longer see any successful connection to kafka. Which extra option do I need to avoid this error? There was no such error observed in Java codebase which is connecting to same kafka cluster.
Successful logs :
2019-03-15T07:15:24.364Z - [32minfo[39m: Producer receipt-svc#producer-1 ready
2019-03-15T07:15:24.410Z - [32minfo[39m: Consumer receipt-svc#consumer-2 ready
2019-03-15T07:15:24.411Z - [32minfo[39m: Subscribing to following topics : XXXX.XXXX.XXXX,XXXX.XXXX.XXXX,XXXX.XXXX.XXXX
2019-03-15T07:15:24.462Z - [32minfo[39m: Consumer receipt-svc#consumer-3 ready
2019-03-15T07:15:24.463Z - [32minfo[39m: Subscribing to following topics : XXXX.XXXX.XXXX
Error logs :
<------Kafka event log : Start ------->
2019-03-16T12:25:25.629Z - [32minfo[39m: severity=4, fac=METADATA, message=[thrd:main]: sasl_ssl://sl73kfkapp002.visa.com:8443/43: Metadata request failed: periodic refresh: Local: Required feature not supported by broker (0ms): Permanent
2019-03-16T12:25:25.630Z - [32minfo[39m: <------Kafka event log : End ------->
2019-03-17T12:30:26.301Z - [32minfo[39m: <------Kafka event log : Start ------->
2019-03-17T12:30:26.302Z - [32minfo[39m: severity=4, fac=METADATA, message=[thrd:main]: sasl_ssl://sl73kfkapp002.visa.com:8443/43: Metadata request failed: refresh unavailable topics: Local: Required feature not supported by broker (0ms): Permanent
2019-03-17T12:30:26.303Z - [32minfo[39m: <------Kafka event log : End ------->
Above logs are printed from following code piece
const consumer = new Kafka.KafkaConsumer(
"client.id": config["client.id"],
"group.id": config["group.id"],
"security.protocol": config["security.protocol"],
"metadata.broker.list": config["metadata.broker.list"],
"ssl.ca.location": config["ssl.ca.location"],
"ssl.certificate.location": config["ssl.certificate.location"],
"ssl.key.location": config["ssl.key.location"],
"ssl.key.password": this.machineKey.decrypt(config["ssl.key.password"]),
"sasl.kerberos.service.name": config["sasl.kerberos.service.name"],
"sasl.kerberos.principal": config["sasl.kerberos.principal"],
"sasl.kerberos.keytab": config["sasl.kerberos.keytab"]
,
"auto.offset.reset": "beginning",
"enable.auto.commit": true
);
consumer.on("event.log", function(log)
logger.info("<------Kafka event log : Start ------->");
logger.info(log);
logger.info("<------Kafka event log : End ------->");
);
consumer.on("ready", function(arg)
logger.info(`Consumer $arg.name ready`);
logger.info("Subscribing to following topics : " + topics);
consumer.subscribe(topics);
consumer.consume();
);
consumer.connect();
node.js apache-kafka
From Node.js application I am trying to connect to Apache Kafka brokers(Version 0.11.0.3) using node-rdkafka client. The application is able to connect to kafka, subscribe to topics for a while but suddenly I see following error after about 1 and a half days in the logs(notice the timestamp). After these logs I can no longer see any successful connection to kafka. Which extra option do I need to avoid this error? There was no such error observed in Java codebase which is connecting to same kafka cluster.
Successful logs :
2019-03-15T07:15:24.364Z - [32minfo[39m: Producer receipt-svc#producer-1 ready
2019-03-15T07:15:24.410Z - [32minfo[39m: Consumer receipt-svc#consumer-2 ready
2019-03-15T07:15:24.411Z - [32minfo[39m: Subscribing to following topics : XXXX.XXXX.XXXX,XXXX.XXXX.XXXX,XXXX.XXXX.XXXX
2019-03-15T07:15:24.462Z - [32minfo[39m: Consumer receipt-svc#consumer-3 ready
2019-03-15T07:15:24.463Z - [32minfo[39m: Subscribing to following topics : XXXX.XXXX.XXXX
Error logs :
<------Kafka event log : Start ------->
2019-03-16T12:25:25.629Z - [32minfo[39m: severity=4, fac=METADATA, message=[thrd:main]: sasl_ssl://sl73kfkapp002.visa.com:8443/43: Metadata request failed: periodic refresh: Local: Required feature not supported by broker (0ms): Permanent
2019-03-16T12:25:25.630Z - [32minfo[39m: <------Kafka event log : End ------->
2019-03-17T12:30:26.301Z - [32minfo[39m: <------Kafka event log : Start ------->
2019-03-17T12:30:26.302Z - [32minfo[39m: severity=4, fac=METADATA, message=[thrd:main]: sasl_ssl://sl73kfkapp002.visa.com:8443/43: Metadata request failed: refresh unavailable topics: Local: Required feature not supported by broker (0ms): Permanent
2019-03-17T12:30:26.303Z - [32minfo[39m: <------Kafka event log : End ------->
Above logs are printed from following code piece
const consumer = new Kafka.KafkaConsumer(
"client.id": config["client.id"],
"group.id": config["group.id"],
"security.protocol": config["security.protocol"],
"metadata.broker.list": config["metadata.broker.list"],
"ssl.ca.location": config["ssl.ca.location"],
"ssl.certificate.location": config["ssl.certificate.location"],
"ssl.key.location": config["ssl.key.location"],
"ssl.key.password": this.machineKey.decrypt(config["ssl.key.password"]),
"sasl.kerberos.service.name": config["sasl.kerberos.service.name"],
"sasl.kerberos.principal": config["sasl.kerberos.principal"],
"sasl.kerberos.keytab": config["sasl.kerberos.keytab"]
,
"auto.offset.reset": "beginning",
"enable.auto.commit": true
);
consumer.on("event.log", function(log)
logger.info("<------Kafka event log : Start ------->");
logger.info(log);
logger.info("<------Kafka event log : End ------->");
);
consumer.on("ready", function(arg)
logger.info(`Consumer $arg.name ready`);
logger.info("Subscribing to following topics : " + topics);
consumer.subscribe(topics);
consumer.consume();
);
consumer.connect();
node.js apache-kafka
node.js apache-kafka
edited Mar 26 at 4:47
hudibaba
asked Mar 25 at 11:15
hudibabahudibaba
316 bronze badges
316 bronze badges
What version are the brokers running? For issues like this, you probably want to open a ticket against node-rdkafka: github.com/Blizzard/node-rdkafka
– Mickael Maison
Mar 25 at 11:54
Broker version is 0.11.0.3. I'll add to my original post. Thanks for the link, would add there as well.
– hudibaba
Mar 26 at 4:46
add a comment |
What version are the brokers running? For issues like this, you probably want to open a ticket against node-rdkafka: github.com/Blizzard/node-rdkafka
– Mickael Maison
Mar 25 at 11:54
Broker version is 0.11.0.3. I'll add to my original post. Thanks for the link, would add there as well.
– hudibaba
Mar 26 at 4:46
What version are the brokers running? For issues like this, you probably want to open a ticket against node-rdkafka: github.com/Blizzard/node-rdkafka
– Mickael Maison
Mar 25 at 11:54
What version are the brokers running? For issues like this, you probably want to open a ticket against node-rdkafka: github.com/Blizzard/node-rdkafka
– Mickael Maison
Mar 25 at 11:54
Broker version is 0.11.0.3. I'll add to my original post. Thanks for the link, would add there as well.
– hudibaba
Mar 26 at 4:46
Broker version is 0.11.0.3. I'll add to my original post. Thanks for the link, would add there as well.
– hudibaba
Mar 26 at 4:46
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55336564%2fusing-node-rdkafka-2-5-1-version-in-my-code-to-connect-to-kafka-and-it-is-crashi%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55336564%2fusing-node-rdkafka-2-5-1-version-in-my-code-to-connect-to-kafka-and-it-is-crashi%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
What version are the brokers running? For issues like this, you probably want to open a ticket against node-rdkafka: github.com/Blizzard/node-rdkafka
– Mickael Maison
Mar 25 at 11:54
Broker version is 0.11.0.3. I'll add to my original post. Thanks for the link, would add there as well.
– hudibaba
Mar 26 at 4:46