1.
原因:spark的版本为
<dependency> <groupId>org.apache.spark</groupId> <artifactId>spark-core_2.11</artifactId> <version>2.2.0</version></dependency>
<dependency> <groupId>org.apache.spark</groupId> <artifactId>spark-sql_2.10</artifactId> <version>2.2.0</version></dependency>将spark sql的版本修改成:
<dependency> <groupId>org.apache.spark</groupId> <artifactId>spark-sql_2.11</artifactId> <version>2.2.0</version></dependency>scalca的lib使用2.11.0的版本
时间: 2024-10-14 04:45:48