How to pass data from Kafka to Spark Streaming?

前端 未结 3 956
日久生厌
日久生厌 2021-02-08 03:57

I am trying to pass data from kafka to spark streaming.

This is what I\'ve done till now:

  1. Installed both kafka and spark
3条回答
  •  粉色の甜心
    2021-02-08 04:44

    You need to submit spark-streaming-kafka-assembly_*.jar with your job:

    spark-submit --jars spark-streaming-kafka-assembly_2.10-1.5.2.jar ./spark-kafka.py 
    

提交回复
热议问题