Spark 2.3.0:无法找到MapGroupsWithStateFunction函数

时间:2018-06-04 10:22:37

标签: maven apache-spark

以下是我在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> 

0 个答案:

没有答案