1

I am on Kafka 0.9.0.0 and Spark version 1.5. While trying to read from kafka, I get the exception below:

Exception in thread "main" java.lang.ClassCastException: kafka.cluster.BrokerEndPoint cannot be cast to kafka.cluster.Broker
    at org.apache.spark.streaming.kafka.KafkaCluster$$anonfun$2$$anonfun$3$$anonfun$apply$6$$anonfun$apply$7.apply(KafkaCluster.scala:90)
    at scala.Option.map(Option.scala:145)
    at org.apache.spark.streaming.kafka.KafkaCluster$$anonfun$2$$anonfun$3$$anonfun$apply$6.apply(KafkaCluster.scala:90)
    at org.apache.spark.streaming.kafka.KafkaCluster$$anonfun$2$$anonfun$3$$anonfun$apply$6.apply(KafkaCluster.scala:87)
    at 

Has anyone experienced this and how to fix it? Could it be because of some version incompatibility? I have see this before Spark Streaming Kafka stream so that is why I suspect version issues.

Community
  • 1
  • 1
kk1957
  • 8,246
  • 10
  • 41
  • 63

0 Answers0