You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Cody Koeninger (JIRA)" <ji...@apache.org> on 2018/07/05 14:09:00 UTC

[jira] [Resolved] (SPARK-24743) Update the JavaDirectKafkaWordCount example to support the new API of Kafka

     [ https://issues.apache.org/jira/browse/SPARK-24743?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Cody Koeninger resolved SPARK-24743.
------------------------------------
       Resolution: Fixed
    Fix Version/s: 2.4.0

Issue resolved by pull request 21717
[https://github.com/apache/spark/pull/21717]

> Update the JavaDirectKafkaWordCount example to support the new API of Kafka
> ---------------------------------------------------------------------------
>
>                 Key: SPARK-24743
>                 URL: https://issues.apache.org/jira/browse/SPARK-24743
>             Project: Spark
>          Issue Type: Bug
>          Components: Examples
>    Affects Versions: 2.3.1
>            Reporter: luochuan
>            Assignee: luochuan
>            Priority: Minor
>             Fix For: 2.4.0
>
>
> when I ran the example JavaDirectKafkaWordCount as follows:
> ./bin/spark-submit --class org.apache.spark.examples.streaming.JavaDirectKafkaWordCount --master local --jars /somepath/spark-streaming-kafka-0-10-assembly_2.11-2.3.1.jar examples/jars/spark-examples_2.11-2.3.1.jar kafka-broker:port topic
> Then a error happened: 'org.apache.kafka.common.config.ConfigException:Missing required configuration "bootstrap.servers" which has no default value'. So I looked into the code and found the example JavaDirectKafkaWordCount  misses some kafka required configs.  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org