Spark2.1.0 incompatible Jackson versions 2.7.6

后端 未结 3 1656
别跟我提以往
别跟我提以往 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条回答
  •  旧时难觅i
    2020-12-05 05:03

    Solution with Gradle, by using the resolutionStrategy (https://docs.gradle.org/current/dsl/org.gradle.api.artifacts.ResolutionStrategy.html):

    configurations {
    
        all {
    
            resolutionStrategy {
                force 'com.fasterxml.jackson.core:jackson-core:2.4.4', 'com.fasterxml.jackson.core:jackson-databind:2.4.4', 'com.fasterxml.jackson.core:jackson-annotations:2.4.4'
            }
        }
    }
    

提交回复
热议问题