How to pass data from Kafka to Spark Streaming?

前端 未结 3 963
日久生厌
日久生厌 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:28

    To print a DStream, spark provides a method pprint for Python. So you'll use

    kafkastream.pprint()

提交回复
热议问题