我正在尝试构建一个从Kafka读取的Spark流媒体应用。
我在这里查看指南https://spark.apache.org/docs/2.4.0/structured-streaming-kafka-integration.html
但是当我用以下方法构建自己的应用程序时:
import org.apache.spark
import org.apache.spark.streaming._
import org.apache.spark.SparkConf
import org.apache.spark.sql._
import org.apache.spark.sql.kafka010
import org.apache.spark.sql.types.{DataTypes, StructType}
我得到:
Error:(24, 8) object readStream is not a member of package org.apache.spark
possible cause: maybe a semicolon is missing before `object readStream'?
.readStream
我缺少什么进口商品?