没有引入正确的依赖版本
经测试 spark2.4 引入 3.6.7
的版本不会报错
<dependency>
<groupId>org.json4s</groupId>
<artifactId>json4s-native_2.11</artifactId>
<version>3.6.7</version>
</dependency>
参考其他回答:
https://blog.csdn.net/qq_39315954/article/details/83744330
https://blog.csdn.net/weixin_45162906/article/details/118340422