[ 
https://issues.apache.org/jira/browse/SPARK-25983?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16682464#comment-16682464
 ] 

Cody Koeninger commented on SPARK-25983:
----------------------------------------

Looks like we need an equivalent warning in 
http://spark.apache.org/docs/latest/structured-streaming-kafka-integration.html#linking
Feel free to submit a PR, and ask me if you need help

> spark-sql-kafka-0-10 no longer works with Kafka 0.10.0
> ------------------------------------------------------
>
>                 Key: SPARK-25983
>                 URL: https://issues.apache.org/jira/browse/SPARK-25983
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 2.4.0
>            Reporter: Alexander Bessonov
>            Priority: Minor
>
> Package {{org.apache.spark:spark-sql-kafka-0-10_2.11:2.4.0}} is no longer 
> compatible with {{org.apache.kafka:kafka_2.11:0.10.0.1}}.
> When both packages are used in the same project, the following exception 
> occurs:
> {code:java}
> java.lang.NoClassDefFoundError: 
> org/apache/kafka/common/protocol/SecurityProtocol
>  at kafka.server.Defaults$.<init>(KafkaConfig.scala:125)
>  at kafka.server.Defaults$.<clinit>(KafkaConfig.scala)
>  at kafka.log.Defaults$.<init>(LogConfig.scala:33)
>  at kafka.log.Defaults$.<clinit>(LogConfig.scala)
>  at kafka.log.LogConfig$.<init>(LogConfig.scala:152)
>  at kafka.log.LogConfig$.<clinit>(LogConfig.scala)
>  at kafka.server.KafkaConfig$.<init>(KafkaConfig.scala:265)
>  at kafka.server.KafkaConfig$.<clinit>(KafkaConfig.scala)
>  at kafka.server.KafkaConfig.<init>(KafkaConfig.scala:759)
>  at kafka.server.KafkaConfig.<init>(KafkaConfig.scala:761)
> {code}
>  
> This exception is caused by incompatible dependency pulled by Spark: 
> {{org.apache.kafka:kafka-clients_2.11:2.0.0}}.
>  
> Following workaround could be used to resolve the problem in my project:
> {code:java}
> dependencyOverrides += "org.apache.kafka" % "kafka-clients" % "0.10.0.1"
> {code}



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

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

Reply via email to