score:1

Accepted answer

If you are using spark-streaming-kafka-0-10_2.11-2.3.0 jar then the KafkaUtils is available in org.apache.spark.streaming.kafka010 this package. So import

import org.apache.spark.streaming.kafka010.KafkaUtils

and not

import org.apache.spark.streaming.kafka.kafkautils 

Hope this hepls!


Related Query

More Query from same tag