[ https://issues.apache.org/jira/browse/SPARK-7396?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tathagata Das updated SPARK-7396: --------------------------------- Summary: Update Producer in Kafka example to use new API of Kafka 0.8.2 (was: Update Kafka example to use new API of Kafka 0.8.2) > Update Producer in Kafka example to use new API of Kafka 0.8.2 > -------------------------------------------------------------- > > Key: SPARK-7396 > URL: https://issues.apache.org/jira/browse/SPARK-7396 > Project: Spark > Issue Type: Bug > Components: Examples, Streaming > Affects Versions: 1.4.0 > Reporter: Saisai Shao > > Due to upgrade of Kafka, current KafkaWordCountProducer will throw below > exception, we need to update the code accordingly. > {code} > 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:77) > at > org.apache.spark.examples.streaming.KafkaWordCountProducer$.main(KafkaWordCount.scala:96) > at > org.apache.spark.examples.streaming.KafkaWordCountProducer.main(KafkaWordCount.scala) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:606) > at > org.apache.spark.deploy.SparkSubmit$.org$apache$spark$deploy$SparkSubmit$$runMain(SparkSubmit.scala:623) > at > org.apache.spark.deploy.SparkSubmit$.doRunMain$1(SparkSubmit.scala:169) > at org.apache.spark.deploy.SparkSubmit$.submit(SparkSubmit.scala:192) > at org.apache.spark.deploy.SparkSubmit$.main(SparkSubmit.scala:111) > at org.apache.spark.deploy.SparkSubmit.main(SparkSubmit.scala) > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org