Spark2.1.0 incompatible Jackson versions 2.7.6

后端 未结 3 1655
别跟我提以往
别跟我提以往 2020-12-05 04:18

I am trying to run a simple spark example in intellij, but I get the error like that:

Exception in thread \"main\" java.lang.ExceptionInInitializerError
at o         


        
3条回答
  •  悲&欢浪女
    2020-12-05 04:45

    FYI. For my case, I'm using spark and kafka-streams in the app, while kafka-streams uses com.fasterxml.jackson.core 2.8.5. Adding exclude as below fixed the issue

    (gradle)

    compile (group: "org.apache.kafka", name: "kafka-streams", version: "0.11.0.0"){
        exclude group:"com.fasterxml.jackson.core"
    }
    

提交回复
热议问题