报错
Spark Streaming’s Kafka libraries not found in class path. Try one of the following.
缺少spark-streaming-kafka-0-8:2.4.3 …该jar包
将下载的jar包放在
/opt/anaconda3/envs/python37/lib/python3.7/site-packages/pyspark/jars
目录下
如果没有使用anaconda, 而是pip3
但是不知道放哪里 ,通过下图方法查找
放到
/usr/local/python3/lib/python3.5/site-packages/pyspark/jars
目录下