kafka-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <pradeep.si...@wipro.com>
Subject Exception in thread "main" kafka.common.FailedToSendMessageException: Failed to send messages after 3 tries
Date Sat, 02 Aug 2014 06:22:53 GMT
Hi Team,

I am trying with Kafka client on Windows 7 64bit -corporate pc which is backed by  proxy and
Kafka is hosted in Ubuntu 12.04. This is my code:

Properties props = new Properties();
props.put("metadata.broker.list", "10.10.10.10:9092"); //Example IP
props.put("serializer.class", "kafka.serializer.StringEncoder");
props.put("request.required.acks", "1");

ProducerConfig config = new ProducerConfig(props);

Producer<String, String> producer = new Producer<String, String>(config);

But I am getting this error:

log4j:WARN No appenders could be found for logger (kafka.utils.VerifiableProperties).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
Exception in thread "main" kafka.common.FailedToSendMessageException: Failed to send messages
after 3 tries.
                at kafka.producer.async.DefaultEventHandler.handle(DefaultEventHandler.scala:90)
                at kafka.producer.Producer.send(Producer.scala:76)
                at kafka.javaapi.producer.Producer.send(Producer.scala:33)
                at com.wipro.bos.KafkaProducer.main(KafkaProducer.java:26)

I am not getting what is the error is, I am able to see this log in Kafka log in Ubuntu machine

[2014-08-02 11:31:22,275] INFO Closing socket connection to /10.10.10.10. (kafka.network.Processor)
[2014-08-02 11:31:23,452] INFO Closing socket connection to /10.10.10.10. (kafka.network.Processor)
[2014-08-02 11:31:24,572] INFO Closing socket connection to /10.10.10.10. (kafka.network.Processor)
[2014-08-02 11:31:25,691] INFO Closing socket connection to /10.10.10.10. (kafka.network.Processor)
[2014-08-02 11:31:26,811] INFO Closing socket connection to /10.10.10.100. (kafka.network.Processor)

Can anyone please guide me? I am not understanding what does this error mean.

Thanks,
Pradeep Simha
Technical Lead

The information contained in this electronic message and any attachments to this message are
intended for the exclusive use of the addressee(s) and may contain proprietary, confidential
or privileged information. If you are not the intended recipient, you should not disseminate,
distribute or copy this e-mail. Please notify the sender immediately and destroy all copies
of this message and any attachments. 

WARNING: Computer viruses can be transmitted via email. The recipient should check this email
and any attachments for the presence of viruses. The company accepts no liability for any
damage caused by any virus transmitted by this email.

www.wipro.com

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message