./kafka-console-producer.sh--broker-list localhost:9092--topic topic1, report the following error
[2014-12-02 14:16:21,565] ERROR Producer Connection to localhost:9092 unsuccessful (kafka.producer.SyncProducer)
Java.net.ConnectException:Connection refused
At Sun.nio.ch.Net.connect0 (Native Method)
At Sun.nio.ch.Net.connect (net.java:465)
At Sun.nio.ch.Net.connect (net.java:457)
At Sun.nio.ch.SocketChannelImpl.connect (socketchannelimpl.java:670)
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) Atkafka.producer.SyncProducer.send (syncproducer.scala:112) Atkafka.client.clientutils$.fetchtopicmetadata ( clientutils.scala:53) Atkafka.producer.BrokerPartitionInfo.updateInfo (brokerpartitioninfo.scala:82) Atkafka.producer.async.DefaultEventHandler anonfun$handle$1.apply$mcv$sp (defaulteventhandler.scala:67)
At Kafka.utils.utils$.swallow (utils.scala:167)
At Kafka.utils.logging$class.swallowerror (logging.scala:106)
At Kafka.utils.utils$.swallowerror (utils.scala:46)
At Kafka.producer.async.DefaultEventHandler.handle (defaulteventhandler.scala:67)
At Kafka.producer.async.ProducerSendThread.tryToHandle (producersendthread.scala:104)
At Kafka.producer.async.ProducerSendThread Ano