2015-01-15 09:33:26 [Kafka.producer.async.defaulteventhandler]-[info] back off for the MS before retrying send. Remaining retries = 1 2015-01-15 09:33:26 [Kafka.client.clientutils$]-[info] fetching metadata from broker Id:0,host:192.168.108.136,port : 9092 with Correlation ID 9 for 1 topic (s) Set (client-all-log-test) 2015-01-15 09:33:26 [Kafka.producer.syncproducer]-[info] Connected to 192.168.108.136:9092 for producing 2015-01-15 09:33:26 [Kafka.producer.syncproducer]-[info] disconnecting from 192.168.108.136:9092 2015-01-15 09:33:47 [Kafka.producer.syncproducer]-[error] producer connection to ubuntu-machine:9092 unsuccessful java.net.ConnectException : Connection timed Out:connect At Sun.nio.ch.Net.connect0 ( Native Method) At Sun.nio.ch.Net.connect (Unknown Source) At Sun.nio.ch.Net.connect (Unknown Source) At Sun.nio.ch.SocketChannelImpl.connect (Unknown Source) At Kafka.network.BlockingChannel.connect (blockingchannel.scala:57) At Kafka.producer.SyncProducer.connect (syncproducer.scala:141) At Kafka.producer.SyncProducer.getOrMakeConnection (syncproducer.scala:156) At kafka.producer.syncproducer.kafka$producer$syncproducer$ $doSend (syncproducer.scala:68) At kafka.producer.syncproducer$ $anonfun $send$1$ $anonfun $apply$mcv$sp$1.apply$mcv$sp (syncproducer.scala:102) At kafka.producer.syncproducer$ $anonfun $send$1$ $anonfun $apply$mcv$sp$1.apply (syncproducer.scala:102) At kafka.producer.syncproducer$ $anonfun $send$1$ $anonfun $apply$mcv$sp$1.apply (syncproducer.scala:102) At Kafka.metrics.KafkaTimer.time (kafkatimer.scala:33) At kafka.producer.syncproducer$ $anonfun $send$1.apply$mcv$sp (syncproducer.scala:101) At kafka.producer.syncproducer$ $anonfun $send$1.apply (syncproducer.scala:101) At kafka.producer.syncproducer$ $anonfun $send$1.apply (syncproducer.scala:101) At Kafka.metrics.KafkaTimer.time (kafkatimer.scala:33) At Kafka.producer.SyncProducer.send (syncproducer.scala:100) At kafka.producer.async.defaulteventhandler.kafka$producer$async$defaulteventhandler$ $send ( defaulteventhandler.scala:255) At kafka.producer.async.defaulteventhandler$ $anonfun $dispatchserializeddata$2.apply (Defaulteventhandler.scala : 106) At kafka.producer.async.defaulteventhandler$ $anonfun $dispatchserializeddata$2.apply (Defaulteventhandler.scala : 100) At scala.collection.mutable.hashmap$ $anonfun $foreach$1.apply (hashmap.scala:95) At scala.collection.mutable.hashmap$ $anonfun $foreach$1.apply (hashmap.scala:95) At Scala.collection.iterator$class.foreach (iterator.scala:772) At scala.collection.mutable.hashtable$ $anon $1.foreach (hashtable.scala:157) At Scala.collection.mutable.hashtable$class.foreachentry (hashtable.scala:190) At Scala.collection.mutable.HashMap.foreachEntry (hashmap.scala:45) At Scala.collection.mutable.HashMap.foreach (hashmap.scala:95) At Kafka.producer.async.DefaultEventHandler.dispatchSerializedData (defaulteventhandler.scala:100) At Kafka.producer.async.DefaultEventHandler.handle (defaulteventhandler.scala:72) At Kafka.producer.Producer.send (producer.scala:76) At Kafka.javaapi.producer.Producer.send (producer.scala:33) At Me.learn.kafka.demo.TestProducer.main ( testproducer.java:38) 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 Me.learn.kafka.demo.TestProducer.main ( testproducer.java:38) |