报错日志
Verifying properties
Property metadata.broker.list is overridden to 192.168.80.50:9092,192.168.80.51:9092,192.168.80.52:9092
Property serializer.class is overridden to kafka.serializer.StringEncoder
Fetching metadata from broker BrokerEndPoint(1,192.168.80.51,9092) with correlation id 0 for 1 topic(s) Set(mykafka)
Connected to 192.168.80.51:9092 for producing
Disconnecting from 192.168.80.51:9092
Connected to hadoop02:9092 for producing
Disconnecting from hadoop02:9092
Failed to send producer request with correlation id 2 to broker 1 with data for partitions [mykafka,0]
java.nio.channels.ClosedChannelException
at kafka.network.BlockingChannel.send(BlockingChannel.scala:110)
at kafka.producer.SyncProducer.liftedTree1 1 ( S y n c P r o d u c e r . s c a l a : 80 ) a t k a f k a . p r o d u c e r . S y n c P r o d u c e r . k a f k a 1(SyncProducer.scala:80) at kafka.producer.SyncProducer.kafka 1(SyncProducer.scala:80)atkafka.producer.SyncProducer.kafkaproducer S y n c P r o d u c e r SyncProducer SyncProducer d o S e n d ( S y n c P r o d u c e r . s c a l a : 79 ) a t k a f k a . p r o d u c e r . S y n c P r o d u c e r doSend(SyncProducer.scala:79) at kafka.producer.SyncProducer doSend(SyncProducer.scala:79)atkafka.producer.SyncProducer a n o n f u n anonfun anonfunsend 1 1 1 a n o n f u n anonfun anonfunapply m c V mcV mcVsp 1. a p p l y 1.apply 1.applymcV s p ( S y n c P r o d u c e r . s c a l a : 110 ) a t k a f k a . p r o d u c e r . S y n c P r o d u c e r sp(SyncProducer.scala:110) at kafka.producer.SyncProducer sp(SyncProducer.scala:110)atkafka.producer.SyncProducer a n o n f u n anonfun