flink sql ddl本地执行报错java.lang.IncompatibleClassChangeError: Implementing class

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

flink sql ddl本地执行报错java.lang.IncompatibleClassChangeError: Implementing class

bigdata
你好,flink1.10.1,项目pom中引入如下配置后:
<dependency&gt;
    <groupId&gt;org.apache.spark</groupId&gt;
    <artifactId&gt;spark-hive_2.11</artifactId&gt;
    <version&gt;2.2.0</version&gt;</dependency&gt;
报错如下:如何解决,是那个包冲突导致的吗
Exception in thread "main" java.lang.IncompatibleClassChangeError: Implementing class
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:468)
        at java.net.URLClassLoader.access$100(URLClassLoader.java:74)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:369)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:363)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:362)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
        at org.apache.flink.table.planner.delegation.PlannerBase.<init&gt;(PlannerBase.scala:86)
        at org.apache.flink.table.planner.delegation.StreamPlanner.<init&gt;(StreamPlanner.scala:44)
        at org.apache.flink.table.planner.delegation.BlinkPlannerFactory.create(BlinkPlannerFactory.java:50)
        at org.apache.flink.table.api.scala.internal.StreamTableEnvironmentImpl$.create(StreamTableEnvironmentImpl.scala:325)
        at org.apache.flink.table.api.scala.StreamTableEnvironment$.create(StreamTableEnvironment.scala:425)
        at com.autoai.cns.core.CNSCreateTableDDL$.main(CNSCreateTableDDL.scala:29)
        at com.autoai.cns.core.CNSCreateTableDDL.main(CNSCreateTableDDL.scala)