kafka icon indicating copy to clipboard operation
kafka copied to clipboard

Producer is crashed when 100000 records are pushed

Open jsatishkumar opened this issue 7 years ago • 3 comments

I have a simple producer and trying to add 100000 json records continuously (streaming data) to a topic but after some point of time, the producer is crashed. How to push huge volume of stream of JSON records to a single topic using producer?

jsatishkumar avatar Jan 23 '17 15:01 jsatishkumar

Do you have exact exception message and trace when it crashed?

oleksiyk avatar Jan 23 '17 15:01 oleksiyk

This is one of the errors without any change in my code. I will post the gc full error message with my code change.

2017-01-23T16:20:02.989Z ERROR no-kafka-client Metadata request failed: NoKafkaConnectionError [127.0.0.1:9092]: Error: read ECONNRESET { [NoKafkaConnectionError: Error: read ECONNRESET] name: 'NoKafkaConnectionError', server: '127.0.0.1:9092', message: 'Error: read ECONNRESET' }

jsatishkumar avatar Jan 23 '17 16:01 jsatishkumar

This looks like your Kafka server has closed connection. Probably because you exceeded message size or something else. Please check your Kafka server logs.

oleksiyk avatar Jan 23 '17 17:01 oleksiyk