gpt4 book ai didi

原因: java.lang.NoClassDefFoundError: org/apache/spark/api/java/function/FlatMapFunction

转载 作者:知者 更新时间:2024-03-13 11:08:03 27 4
gpt4 key购买 nike

启动spark streaming失败,报错为:

原因: java.lang.NoClassDefFoundError: org/apache/spark/api/java/function/FlatMapFunction

解决:

在pom.xml里面,原配置

<dependency>
            <groupId>org.apache.spark</groupId>
            <artifactId>spark-streaming_2.12</artifactId>
            <version>3.2.1</version>
            <scope>provided</scope>
        </dependency>

**<scope>provided</scope>**

删掉即可。变为:

<dependency>
            <groupId>org.apache.spark</groupId>
            <artifactId>spark-streaming_2.12</artifactId>
            <version>3.2.1</version>
        </dependency>

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com