Caused by: com.fasterxml.jackson.databind.JsonMappingException: Incompatible Jackson version: 2.9.8 解决:spark 依赖的版本过高 不兼容 <dependency> <groupId>com.fasterxml.jackson.core</groupId> <artifactId>jackson-databind</artifactId> <version>2.6.6</version> </dependency>
如果还有错误 可能其他包也引入了版本过高的依赖,在其中将jackson的自动引入剔除即可 <dependency> <groupId> org.apache.kafka</groupId> <artifactId>kafka_2.11</artifactId> <version>1.1.1</version> <exclusions> <exclusion> <groupId>com.fasterxml.jackson.core</groupId> <artifactId>*</artifactId> </exclusion> </exclusions> </dependency>