人工制品 cm-jobs
对工件有依赖性 kloud
. kloud
对工件有依赖性 jackson-databind
. maven-shaded-plugin
用于 Package cm-jobs
. 在执行 hadoop jar
上 cm-jobs
我们看到以下错误。
Exception in thread "main" java.lang.NoSuchMethodError: com.fasterxml.jackson.databind.JsonNode.asText(Ljava/lang/String;)Ljava/lang/String;
at com.flipkart.kloud.config.InstanceMetaData.getNode(InstanceMetaData.java:81)
at com.flipkart.kloud.config.InstanceMetaData.<init>(InstanceMetaData.java:46)
at com.flipkart.kloud.config.InstanceMetaData.<clinit>(InstanceMetaData.java:36)
at com.flipkart.kloud.config.EndpointProvider.<init>(EndpointProvider.java:44)
at com.flipkart.kloud.config.EndpointProvider.<clinit>(EndpointProvider.java:35)
at com.flipkart.kloud.config.ConfigClient.getEndpoint(ConfigClient.java:170)
at com.flipkart.kloud.config.ConfigClient.<init>(ConfigClient.java:102)
at com.flipkart.kloud.config.ConfigClient.<init>(ConfigClient.java:91)
at com.flipkart.ads.common.configuration.ConfigServiceClient.getAppDynamicBucketFromEnvSettings(ConfigServiceClient.java:246)
at com.flipkart.ads.common.configuration.ConfigServiceClient.getAppDynamicBucketFromEnvSettings(ConfigServiceClient.java:237)
at com.flipkart.ads.jobs.BaseTrigger.init(BaseTrigger.java:20)
at com.flipkart.ads.jobs.BaseTrigger.markJobStatus(BaseTrigger.java:32)
at com.flipkart.ads.jobs.reco.PLARecoRelevanceGenerator.run(PLARecoRelevanceGenerator.java:102)
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:76)
at com.flipkart.ads.jobs.reco.PLARecoRelevanceGenerator.main(PLARecoRelevanceGenerator.java:54)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.apache.hadoop.util.RunJar.run(RunJar.java:221)
at org.apache.hadoop.util.RunJar.main(RunJar.java:136)
根据这里的依赖树,只有一个版本的jacksonbind被使用。那么,冲突阶级来自哪里 com.fasterxml.jackson.databind.JsonNode
被选中?
暂无答案!
目前还没有任何答案,快来回答吧!