KafkaUtils module not found on spark 3 pyspark
https://python-forum.io/thread-32546.html17.02.2021 · But I found the spark 3 pyspark module does not contain KafkaUtils at all. The below codes can not import KafkaUtils. 1. 2. from pyspark.streaming.kafka import KafkaUtils. from pyspark.streaming.kafka import OffsetRange. So, I downgrade spark from 3.0.1-bin-hadoop3.2 to 2.4.7-bin-hadoop2.7. Then I can sucsessfully import KafkaUtils on eclipse ide.