You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@flink.apache.org by han <cj...@163.com> on 2023/09/08 06:52:50 UTC

org.apache.flink.kubernetes.shaded.com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException

Hi flink users,


I used three dependencies in my pom.xml in this order:kubernetes-client、flink-clients_2.11、flink-kubernetes_2.11.  when i execute 
DeploymentList deploymentList = client.apps().deployments().inNamespace(namespace).list(); 
throw exception see below.


how can i solve this exception?


<dependency> 
      <groupId>io.fabric8</groupId>
      <artifactId>kubernetes-client</artifactId>
      <version>5.12.2</version>
 </dependency>
 <dependency> 
      <groupId>org.apache.flink</groupId> 
       <artifactId>flink-clients_2.11</artifactId> 
       <version>1.13.1</version>
 </dependency>
 <dependency>
       <groupId>org.apache.flink</groupId> 
       <artifactId>flink-kubernetes_2.11</artifactId> 
       <version>1.13.1</version>
 <exclusions> 
       <exclusion> 
             <groupId>io.fabric8</groupId> 
             <artifactId>kubernetes-client</artifactId> 
       </exclusion> 
 </exclusions>
 </dependency>




Caused by: org.apache.flink.kubernetes.shaded.com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field "f:metadata" (class io.fabric8.kubernetes.api.model.FieldsV1), not marked as ignorable (one known property: "additionalProperties"])
 at [Source: (BufferedInputStream); line: 1, column: 3340] (through reference chain: io.fabric8.kubernetes.api.model.apps.DeploymentList["items"]->java.util.ArrayList[0]->io.fabric8.kubernetes.api.model.apps.Deployment["metadata"]->io.fabric8.kubernetes.api.model.ObjectMeta["managedFields"]->java.util.ArrayList[0]->io.fabric8.kubernetes.api.model.ManagedFieldsEntry["fieldsV1"]->io.fabric8.kubernetes.api.model.FieldsV1["f:metadata"])




Kind regards
| |


|
|
cjhdut@163.com
|