wangyang0918 edited a comment on pull request #12215:
URL: https://github.com/apache/flink/pull/12215#issuecomment-631210861


   @zhengcanbin Thanks a lot for creating this PR. I am afraid this PR could 
not work because the new `kubernetes-client` version introduce some additional 
dependencies(e.g. `com.fasterxml.jackson.datatype:jackson-datatype-jsr310`). 
Could you please check for that?
   
   ```
   2020-05-18 14:22:19,882 INFO  
org.apache.flink.client.deployment.DefaultClusterClientServiceLoader [] - Could 
not load factory due to missing dependencies.
   Exception in thread "main" java.lang.NoClassDefFoundError: 
org/apache/flink/kubernetes/shaded/com/fasterxml/jackson/datatype/jsr310/JavaTimeModule
        at 
io.fabric8.kubernetes.client.internal.KubeConfigUtils.parseConfigFromString(KubeConfigUtils.java:44)
        at 
io.fabric8.kubernetes.client.Config.loadFromKubeconfig(Config.java:505)
        at io.fabric8.kubernetes.client.Config.tryKubeConfig(Config.java:491)
        at io.fabric8.kubernetes.client.Config.autoConfigure(Config.java:230)
        at io.fabric8.kubernetes.client.Config.<init>(Config.java:214)
        at io.fabric8.kubernetes.client.Config.autoConfigure(Config.java:225)
        at 
org.apache.flink.kubernetes.kubeclient.KubeClientFactory.fromConfiguration(KubeClientFactory.java:69)
        at 
org.apache.flink.kubernetes.KubernetesClusterClientFactory.createClusterDescriptor(KubernetesClusterClientFactory.java:58)
        at 
org.apache.flink.kubernetes.KubernetesClusterClientFactory.createClusterDescriptor(KubernetesClusterClientFactory.java:39)
        at 
org.apache.flink.kubernetes.cli.KubernetesSessionCli.run(KubernetesSessionCli.java:95)
        at 
org.apache.flink.kubernetes.cli.KubernetesSessionCli.lambda$main$0(KubernetesSessionCli.java:185)
        at 
org.apache.flink.runtime.security.contexts.NoOpSecurityContext.runSecured(NoOpSecurityContext.java:30)
        at 
org.apache.flink.kubernetes.cli.KubernetesSessionCli.main(KubernetesSessionCli.java:185)
   Caused by: java.lang.ClassNotFoundException: 
org.apache.flink.kubernetes.shaded.com.fasterxml.jackson.datatype.jsr310.JavaTimeModule
        at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
        ... 13 more
   
   ```


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to