diff options
author | jerryshao <saisai.shao@intel.com> | 2015-05-06 17:44:43 -0700 |
---|---|---|
committer | Tathagata Das <tathagata.das1565@gmail.com> | 2015-05-06 17:44:43 -0700 |
commit | 316a5c0423ba3688cacd3acc3c5b5571e8a71d1d (patch) | |
tree | f445335c56d7bef81b128e2aa818cadbfcc6cbec /tools/pom.xml | |
parent | 4e930420c19ae7773b138dfc7db8fc03b4660251 (diff) | |
download | spark-316a5c0423ba3688cacd3acc3c5b5571e8a71d1d.tar.gz spark-316a5c0423ba3688cacd3acc3c5b5571e8a71d1d.tar.bz2 spark-316a5c0423ba3688cacd3acc3c5b5571e8a71d1d.zip |
[SPARK-7396] [STREAMING] [EXAMPLE] Update KafkaWordCountProducer to use new Producer API
Otherwise it will throw exception:
```
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)
```
Author: jerryshao <saisai.shao@intel.com>
Closes #5936 from jerryshao/SPARK-7396 and squashes the following commits:
270bbe2 [jerryshao] Fix Kafka Produce throw Exception issue
Diffstat (limited to 'tools/pom.xml')
0 files changed, 0 insertions, 0 deletions