以下是我在pom.xml中提到的依赖关系的快照,但是,我无法找到MapGroupsWithStateFunction。
import org.apache.spark.api.java.function.MapGroupsWithStateFunction; //它说这无法解决。
我在这里想念一切吗?
<properties>
<spark.core.version>2.3.0</spark.core.version>
<kafka.version>1.1.0</kafka.version>
</properties>
<dependency>
<groupId>org.apache.spark</groupId>
<artifactId>spark-core_2.11</artifactId>
<version>${spark.core.version}</version>
</dependency>
<dependency>
<groupId>org.apache.spark</groupId>
<artifactId>spark-streaming_2.11</artifactId>
<version>${spark.core.version}</version>
</dependency>