flink写hive表报错

flink写hive表报错

老师您好:我测试使用flink写hive表时候遇到一些报错不知道如何解决。

下面是我练习的代码

package com.learn.bigdata.flink.batch;

import org.apache.flink.table.api.EnvironmentSettings;
import org.apache.flink.table.api.SqlDialect;
import org.apache.flink.table.api.TableEnvironment;
import org.apache.flink.table.catalog.hive.HiveCatalog;

public class DwdOrderInfo {
    public static void main(String[] args) throws Exception {
        final String hiveCatalogName = "hive";
        final String hiveCatalogDefaultDatabase = "flink";

        EnvironmentSettings settings = EnvironmentSettings.newInstance().inStreamingMode().build();
        TableEnvironment tableEnv = TableEnvironment.create(settings);

        HiveCatalog hive = new HiveCatalog(hiveCatalogName, hiveCatalogDefaultDatabase, null);
        tableEnv.registerCatalog("myhive", hive);
        tableEnv.useCatalog("myhive");
        tableEnv.useDatabase("default");

        tableEnv.getConfig().setSqlDialect(SqlDialect.HIVE);
        tableEnv.executeSql("CREATE EXTERNAL TABLE IF NOT EXISTS `hive_table` (\n" +
                "`user_id` string, \n" +
                "`order_amount` double \n" +
                ") STORED AS PARQUET\n" +
                "location '/user/hive/warehouse/flink.db/hive_table'\n" +
                "TBLPROPERTIES ('parquet.compression'='SNAPPY')");

        tableEnv.getConfig().setSqlDialect(SqlDialect.DEFAULT);
        tableEnv.executeSql("CREATE TABLE IF NOT EXISTS `flink_table` (\n" +
                "`user_id` string, \n" +
                "`order_amount` double \n" +
                ") WITH (\n" +
                "  'connector' = 'datagen',\n" +
                "  'rows-per-second' = '100'\n" +
                ")");

        tableEnv.getConfig().setSqlDialect(SqlDialect.HIVE);
        tableEnv.executeSql("INSERT INTO TABLE `hive_table` SELECT `user_id`,`order_amount` FROM `flink_table`");
    }
}

单独执行都没有问题,但是只要执行最后一句话就会报错

/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/bin/java "-javaagent:/Applications/IntelliJ IDEA.app/Contents/lib/idea_rt.jar=56220:/Applications/IntelliJ IDEA.app/Contents/bin" -Dfile.encoding=UTF-8 -classpath /Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/jre/lib/charsets.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/jre/lib/deploy.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/jre/lib/ext/cldrdata.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/jre/lib/ext/dnsns.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/jre/lib/ext/jaccess.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/jre/lib/ext/jfxrt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/jre/lib/ext/localedata.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/jre/lib/ext/nashorn.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/jre/lib/ext/sunec.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/jre/lib/ext/sunjce_provider.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/jre/lib/ext/sunpkcs11.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/jre/lib/ext/zipfs.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/jre/lib/javaws.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/jre/lib/jce.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/jre/lib/jfr.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/jre/lib/jfxswt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/jre/lib/jsse.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/jre/lib/management-agent.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/jre/lib/plugin.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/jre/lib/resources.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/jre/lib/rt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/lib/ant-javafx.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/lib/dt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/lib/javafx-mx.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/lib/jconsole.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/lib/packager.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/lib/sa-jdi.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/lib/tools.jar:/Users/zhanghao/projects/my-projects/hadoop/db_flink/target/classes:/Users/zhanghao/.m2/repository/org/apache/flink/flink-clients_2.12/1.14.3/flink-clients_2.12-1.14.3.jar:/Users/zhanghao/.m2/repository/org/apache/flink/flink-core/1.14.3/flink-core-1.14.3.jar:/Users/zhanghao/.m2/repository/org/apache/flink/flink-annotations/1.14.3/flink-annotations-1.14.3.jar:/Users/zhanghao/.m2/repository/org/apache/flink/flink-metrics-core/1.14.3/flink-metrics-core-1.14.3.jar:/Users/zhanghao/.m2/repository/com/esotericsoftware/kryo/kryo/2.24.0/kryo-2.24.0.jar:/Users/zhanghao/.m2/repository/com/esotericsoftware/minlog/minlog/1.2/minlog-1.2.jar:/Users/zhanghao/.m2/repository/org/objenesis/objenesis/2.1/objenesis-2.1.jar:/Users/zhanghao/.m2/repository/commons-collections/commons-collections/3.2.2/commons-collections-3.2.2.jar:/Users/zhanghao/.m2/repository/org/apache/flink/flink-runtime/1.14.3/flink-runtime-1.14.3.jar:/Users/zhanghao/.m2/repository/org/apache/flink/flink-rpc-core/1.14.3/flink-rpc-core-1.14.3.jar:/Users/zhanghao/.m2/repository/org/apache/flink/flink-rpc-akka-loader/1.14.3/flink-rpc-akka-loader-1.14.3.jar:/Users/zhanghao/.m2/repository/org/apache/flink/flink-queryable-state-client-java/1.14.3/flink-queryable-state-client-java-1.14.3.jar:/Users/zhanghao/.m2/repository/org/apache/flink/flink-hadoop-fs/1.14.3/flink-hadoop-fs-1.14.3.jar:/Users/zhanghao/.m2/repository/org/apache/flink/flink-shaded-netty/4.1.65.Final-14.0/flink-shaded-netty-4.1.65.Final-14.0.jar:/Users/zhanghao/.m2/repository/org/apache/flink/flink-shaded-jackson/2.12.4-14.0/flink-shaded-jackson-2.12.4-14.0.jar:/Users/zhanghao/.m2/repository/org/apache/flink/flink-shaded-zookeeper-3/3.4.14-14.0/flink-shaded-zookeeper-3-3.4.14-14.0.jar:/Users/zhanghao/.m2/repository/org/javassist/javassist/3.24.0-GA/javassist-3.24.0-GA.jar:/Users/zhanghao/.m2/repository/org/xerial/snappy/snappy-java/1.1.8.3/snappy-java-1.1.8.3.jar:/Users/zhanghao/.m2/repository/org/lz4/lz4-java/1.8.0/lz4-java-1.8.0.jar:/Users/zhanghao/.m2/repository/org/apache/flink/flink-optimizer/1.14.3/flink-optimizer-1.14.3.jar:/Users/zhanghao/.m2/repository/org/apache/flink/flink-java/1.14.3/flink-java-1.14.3.jar:/Users/zhanghao/.m2/repository/commons-cli/commons-cli/1.3.1/commons-cli-1.3.1.jar:/Users/zhanghao/.m2/repository/org/apache/flink/flink-streaming-java_2.12/1.14.3/flink-streaming-java_2.12-1.14.3.jar:/Users/zhanghao/.m2/repository/org/apache/flink/flink-scala_2.12/1.14.3/flink-scala_2.12-1.14.3.jar:/Users/zhanghao/.m2/repository/com/twitter/chill_2.12/0.7.6/chill_2.12-0.7.6.jar:/Users/zhanghao/.m2/repository/com/google/code/findbugs/jsr305/1.3.9/jsr305-1.3.9.jar:/Users/zhanghao/.m2/repository/org/apache/flink/flink-shaded-force-shading/14.0/flink-shaded-force-shading-14.0.jar:/Users/zhanghao/.m2/repository/org/apache/flink/flink-table-api-java-bridge_2.11/1.14.3/flink-table-api-java-bridge_2.11-1.14.3.jar:/Users/zhanghao/.m2/repository/org/apache/flink/flink-table-api-java/1.14.3/flink-table-api-java-1.14.3.jar:/Users/zhanghao/.m2/repository/org/apache/flink/flink-table-planner_2.11/1.14.3/flink-table-planner_2.11-1.14.3.jar:/Users/zhanghao/.m2/repository/org/apache/flink/flink-table-api-scala_2.11/1.14.3/flink-table-api-scala_2.11-1.14.3.jar:/Users/zhanghao/.m2/repository/org/scala-lang/scala-reflect/2.11.12/scala-reflect-2.11.12.jar:/Users/zhanghao/.m2/repository/org/scala-lang/scala-library/2.11.12/scala-library-2.11.12.jar:/Users/zhanghao/.m2/repository/org/scala-lang/scala-compiler/2.11.12/scala-compiler-2.11.12.jar:/Users/zhanghao/.m2/repository/org/scala-lang/modules/scala-xml_2.11/1.0.5/scala-xml_2.11-1.0.5.jar:/Users/zhanghao/.m2/repository/org/scala-lang/modules/scala-parser-combinators_2.11/1.0.4/scala-parser-combinators_2.11-1.0.4.jar:/Users/zhanghao/.m2/repository/org/apache/flink/flink-table-api-scala-bridge_2.11/1.14.3/flink-table-api-scala-bridge_2.11-1.14.3.jar:/Users/zhanghao/.m2/repository/org/apache/flink/flink-streaming-scala_2.11/1.14.3/flink-streaming-scala_2.11-1.14.3.jar:/Users/zhanghao/.m2/repository/org/apache/flink/flink-table-runtime_2.11/1.14.3/flink-table-runtime_2.11-1.14.3.jar:/Users/zhanghao/.m2/repository/org/apache/flink/flink-table-code-splitter/1.14.3/flink-table-code-splitter-1.14.3.jar:/Users/zhanghao/.m2/repository/org/codehaus/janino/janino/3.0.11/janino-3.0.11.jar:/Users/zhanghao/.m2/repository/org/apache/calcite/avatica/avatica-core/1.17.0/avatica-core-1.17.0.jar:/Users/zhanghao/.m2/repository/org/apache/flink/flink-streaming-java_2.11/1.14.3/flink-streaming-java_2.11-1.14.3.jar:/Users/zhanghao/.m2/repository/org/apache/flink/flink-file-sink-common/1.14.3/flink-file-sink-common-1.14.3.jar:/Users/zhanghao/.m2/repository/org/apache/flink/flink-scala_2.11/1.14.3/flink-scala_2.11-1.14.3.jar:/Users/zhanghao/.m2/repository/com/twitter/chill_2.11/0.7.6/chill_2.11-0.7.6.jar:/Users/zhanghao/.m2/repository/com/twitter/chill-java/0.7.6/chill-java-0.7.6.jar:/Users/zhanghao/.m2/repository/org/apache/flink/flink-shaded-guava/30.1.1-jre-14.0/flink-shaded-guava-30.1.1-jre-14.0.jar:/Users/zhanghao/.m2/repository/org/apache/commons/commons-math3/3.5/commons-math3-3.5.jar:/Users/zhanghao/.m2/repository/org/apache/flink/flink-table-common/1.14.3/flink-table-common-1.14.3.jar:/Users/zhanghao/.m2/repository/org/apache/flink/flink-connector-files/1.14.3/flink-connector-files-1.14.3.jar:/Users/zhanghao/.m2/repository/org/apache/flink/flink-connector-base/1.14.3/flink-connector-base-1.14.3.jar:/Users/zhanghao/.m2/repository/org/apache/flink/flink-shaded-asm-7/7.1-14.0/flink-shaded-asm-7-7.1-14.0.jar:/Users/zhanghao/.m2/repository/org/slf4j/slf4j-api/1.7.10/slf4j-api-1.7.10.jar:/Users/zhanghao/.m2/repository/org/slf4j/slf4j-log4j12/1.7.10/slf4j-log4j12-1.7.10.jar:/Users/zhanghao/.m2/repository/log4j/log4j/1.2.17/log4j-1.2.17.jar:/Users/zhanghao/.m2/repository/org/apache/flink/flink-json/1.14.3/flink-json-1.14.3.jar:/Users/zhanghao/.m2/repository/org/apache/flink/flink-parquet_2.11/1.14.3/flink-parquet_2.11-1.14.3.jar:/Users/zhanghao/.m2/repository/org/apache/parquet/parquet-hadoop/1.11.1/parquet-hadoop-1.11.1.jar:/Users/zhanghao/.m2/repository/org/apache/parquet/parquet-column/1.11.1/parquet-column-1.11.1.jar:/Users/zhanghao/.m2/repository/org/apache/parquet/parquet-common/1.11.1/parquet-common-1.11.1.jar:/Users/zhanghao/.m2/repository/org/apache/yetus/audience-annotations/0.11.0/audience-annotations-0.11.0.jar:/Users/zhanghao/.m2/repository/org/apache/parquet/parquet-encoding/1.11.1/parquet-encoding-1.11.1.jar:/Users/zhanghao/.m2/repository/org/apache/parquet/parquet-format-structures/1.11.1/parquet-format-structures-1.11.1.jar:/Users/zhanghao/.m2/repository/javax/annotation/javax.annotation-api/1.3.2/javax.annotation-api-1.3.2.jar:/Users/zhanghao/.m2/repository/org/apache/parquet/parquet-jackson/1.11.1/parquet-jackson-1.11.1.jar:/Users/zhanghao/.m2/repository/commons-pool/commons-pool/1.6/commons-pool-1.6.jar:/Users/zhanghao/.m2/repository/org/apache/flink/flink-statebackend-rocksdb_2.11/1.14.3/flink-statebackend-rocksdb_2.11-1.14.3.jar:/Users/zhanghao/.m2/repository/com/ververica/frocksdbjni/6.20.3-ververica-1.0/frocksdbjni-6.20.3-ververica-1.0.jar:/Users/zhanghao/.m2/repository/org/apache/hadoop/hadoop-client/3.2.0/hadoop-client-3.2.0.jar:/Users/zhanghao/.m2/repository/org/apache/hadoop/hadoop-common/3.2.0/hadoop-common-3.2.0.jar:/Users/zhanghao/.m2/repository/org/apache/httpcomponents/httpclient/4.5.2/httpclient-4.5.2.jar:/Users/zhanghao/.m2/repository/org/apache/httpcomponents/httpcore/4.4.4/httpcore-4.4.4.jar:/Users/zhanghao/.m2/repository/commons-net/commons-net/3.6/commons-net-3.6.jar:/Users/zhanghao/.m2/repository/org/eclipse/jetty/jetty-servlet/9.3.24.v20180605/jetty-servlet-9.3.24.v20180605.jar:/Users/zhanghao/.m2/repository/org/eclipse/jetty/jetty-security/9.3.24.v20180605/jetty-security-9.3.24.v20180605.jar:/Users/zhanghao/.m2/repository/org/eclipse/jetty/jetty-webapp/9.3.24.v20180605/jetty-webapp-9.3.24.v20180605.jar:/Users/zhanghao/.m2/repository/org/eclipse/jetty/jetty-xml/9.3.24.v20180605/jetty-xml-9.3.24.v20180605.jar:/Users/zhanghao/.m2/repository/javax/servlet/jsp/jsp-api/2.1/jsp-api-2.1.jar:/Users/zhanghao/.m2/repository/com/sun/jersey/jersey-servlet/1.19/jersey-servlet-1.19.jar:/Users/zhanghao/.m2/repository/commons-logging/commons-logging/1.1.3/commons-logging-1.1.3.jar:/Users/zhanghao/.m2/repository/commons-beanutils/commons-beanutils/1.9.3/commons-beanutils-1.9.3.jar:/Users/zhanghao/.m2/repository/org/apache/commons/commons-configuration2/2.1.1/commons-configuration2-2.1.1.jar:/Users/zhanghao/.m2/repository/org/apache/commons/commons-text/1.4/commons-text-1.4.jar:/Users/zhanghao/.m2/repository/org/apache/avro/avro/1.7.7/avro-1.7.7.jar:/Users/zhanghao/.m2/repository/org/codehaus/jackson/jackson-core-asl/1.9.13/jackson-core-asl-1.9.13.jar:/Users/zhanghao/.m2/repository/org/codehaus/jackson/jackson-mapper-asl/1.9.13/jackson-mapper-asl-1.9.13.jar:/Users/zhanghao/.m2/repository/com/thoughtworks/paranamer/paranamer/2.3/paranamer-2.3.jar:/Users/zhanghao/.m2/repository/com/google/re2j/re2j/1.1/re2j-1.1.jar:/Users/zhanghao/.m2/repository/org/apache/hadoop/hadoop-auth/3.2.0/hadoop-auth-3.2.0.jar:/Users/zhanghao/.m2/repository/com/nimbusds/nimbus-jose-jwt/4.41.1/nimbus-jose-jwt-4.41.1.jar:/Users/zhanghao/.m2/repository/com/github/stephenc/jcip/jcip-annotations/1.0-1/jcip-annotations-1.0-1.jar:/Users/zhanghao/.m2/repository/org/apache/curator/curator-client/2.12.0/curator-client-2.12.0.jar:/Users/zhanghao/.m2/repository/org/apache/curator/curator-recipes/2.12.0/curator-recipes-2.12.0.jar:/Users/zhanghao/.m2/repository/org/apache/htrace/htrace-core4/4.1.0-incubating/htrace-core4-4.1.0-incubating.jar:/Users/zhanghao/.m2/repository/org/apache/kerby/kerb-simplekdc/1.0.1/kerb-simplekdc-1.0.1.jar:/Users/zhanghao/.m2/repository/org/apache/kerby/kerb-client/1.0.1/kerb-client-1.0.1.jar:/Users/zhanghao/.m2/repository/org/apache/kerby/kerby-config/1.0.1/kerby-config-1.0.1.jar:/Users/zhanghao/.m2/repository/org/apache/kerby/kerb-core/1.0.1/kerb-core-1.0.1.jar:/Users/zhanghao/.m2/repository/org/apache/kerby/kerby-pkix/1.0.1/kerby-pkix-1.0.1.jar:/Users/zhanghao/.m2/repository/org/apache/kerby/kerby-asn1/1.0.1/kerby-asn1-1.0.1.jar:/Users/zhanghao/.m2/repository/org/apache/kerby/kerby-util/1.0.1/kerby-util-1.0.1.jar:/Users/zhanghao/.m2/repository/org/apache/kerby/kerb-common/1.0.1/kerb-common-1.0.1.jar:/Users/zhanghao/.m2/repository/org/apache/kerby/kerb-crypto/1.0.1/kerb-crypto-1.0.1.jar:/Users/zhanghao/.m2/repository/org/apache/kerby/kerb-util/1.0.1/kerb-util-1.0.1.jar:/Users/zhanghao/.m2/repository/org/apache/kerby/token-provider/1.0.1/token-provider-1.0.1.jar:/Users/zhanghao/.m2/repository/org/apache/kerby/kerb-admin/1.0.1/kerb-admin-1.0.1.jar:/Users/zhanghao/.m2/repository/org/apache/kerby/kerb-server/1.0.1/kerb-server-1.0.1.jar:/Users/zhanghao/.m2/repository/org/apache/kerby/kerb-identity/1.0.1/kerb-identity-1.0.1.jar:/Users/zhanghao/.m2/repository/org/apache/kerby/kerby-xdr/1.0.1/kerby-xdr-1.0.1.jar:/Users/zhanghao/.m2/repository/org/codehaus/woodstox/stax2-api/3.1.4/stax2-api-3.1.4.jar:/Users/zhanghao/.m2/repository/com/fasterxml/woodstox/woodstox-core/5.0.3/woodstox-core-5.0.3.jar:/Users/zhanghao/.m2/repository/dnsjava/dnsjava/2.1.7/dnsjava-2.1.7.jar:/Users/zhanghao/.m2/repository/org/apache/hadoop/hadoop-hdfs-client/3.2.0/hadoop-hdfs-client-3.2.0.jar:/Users/zhanghao/.m2/repository/com/squareup/okhttp/okhttp/2.7.5/okhttp-2.7.5.jar:/Users/zhanghao/.m2/repository/com/squareup/okio/okio/1.6.0/okio-1.6.0.jar:/Users/zhanghao/.m2/repository/org/apache/hadoop/hadoop-yarn-api/3.2.0/hadoop-yarn-api-3.2.0.jar:/Users/zhanghao/.m2/repository/javax/xml/bind/jaxb-api/2.2.11/jaxb-api-2.2.11.jar:/Users/zhanghao/.m2/repository/org/apache/hadoop/hadoop-yarn-client/3.2.0/hadoop-yarn-client-3.2.0.jar:/Users/zhanghao/.m2/repository/org/apache/hadoop/hadoop-mapreduce-client-core/3.2.0/hadoop-mapreduce-client-core-3.2.0.jar:/Users/zhanghao/.m2/repository/org/apache/hadoop/hadoop-yarn-common/3.2.0/hadoop-yarn-common-3.2.0.jar:/Users/zhanghao/.m2/repository/javax/servlet/javax.servlet-api/3.1.0/javax.servlet-api-3.1.0.jar:/Users/zhanghao/.m2/repository/org/eclipse/jetty/jetty-util/9.3.24.v20180605/jetty-util-9.3.24.v20180605.jar:/Users/zhanghao/.m2/repository/com/sun/jersey/jersey-core/1.19/jersey-core-1.19.jar:/Users/zhanghao/.m2/repository/javax/ws/rs/jsr311-api/1.1.1/jsr311-api-1.1.1.jar:/Users/zhanghao/.m2/repository/com/sun/jersey/jersey-client/1.19/jersey-client-1.19.jar:/Users/zhanghao/.m2/repository/com/fasterxml/jackson/module/jackson-module-jaxb-annotations/2.9.5/jackson-module-jaxb-annotations-2.9.5.jar:/Users/zhanghao/.m2/repository/com/fasterxml/jackson/jaxrs/jackson-jaxrs-json-provider/2.9.5/jackson-jaxrs-json-provider-2.9.5.jar:/Users/zhanghao/.m2/repository/com/fasterxml/jackson/jaxrs/jackson-jaxrs-base/2.9.5/jackson-jaxrs-base-2.9.5.jar:/Users/zhanghao/.m2/repository/org/apache/hadoop/hadoop-mapreduce-client-jobclient/3.2.0/hadoop-mapreduce-client-jobclient-3.2.0.jar:/Users/zhanghao/.m2/repository/org/apache/hadoop/hadoop-mapreduce-client-common/3.2.0/hadoop-mapreduce-client-common-3.2.0.jar:/Users/zhanghao/.m2/repository/org/apache/hadoop/hadoop-annotations/3.2.0/hadoop-annotations-3.2.0.jar:/Users/zhanghao/.m2/repository/org/apache/flink/flink-connector-elasticsearch6_2.11/1.14.3/flink-connector-elasticsearch6_2.11-1.14.3.jar:/Users/zhanghao/.m2/repository/org/apache/flink/flink-connector-elasticsearch-base_2.11/1.14.3/flink-connector-elasticsearch-base_2.11-1.14.3.jar:/Users/zhanghao/.m2/repository/org/elasticsearch/client/elasticsearch-rest-high-level-client/6.3.1/elasticsearch-rest-high-level-client-6.3.1.jar:/Users/zhanghao/.m2/repository/org/elasticsearch/elasticsearch/6.3.1/elasticsearch-6.3.1.jar:/Users/zhanghao/.m2/repository/org/elasticsearch/elasticsearch-core/6.3.1/elasticsearch-core-6.3.1.jar:/Users/zhanghao/.m2/repository/org/elasticsearch/elasticsearch-secure-sm/6.3.1/elasticsearch-secure-sm-6.3.1.jar:/Users/zhanghao/.m2/repository/org/elasticsearch/elasticsearch-x-content/6.3.1/elasticsearch-x-content-6.3.1.jar:/Users/zhanghao/.m2/repository/org/yaml/snakeyaml/1.17/snakeyaml-1.17.jar:/Users/zhanghao/.m2/repository/com/fasterxml/jackson/dataformat/jackson-dataformat-smile/2.8.10/jackson-dataformat-smile-2.8.10.jar:/Users/zhanghao/.m2/repository/com/fasterxml/jackson/dataformat/jackson-dataformat-yaml/2.8.10/jackson-dataformat-yaml-2.8.10.jar:/Users/zhanghao/.m2/repository/com/fasterxml/jackson/dataformat/jackson-dataformat-cbor/2.8.10/jackson-dataformat-cbor-2.8.10.jar:/Users/zhanghao/.m2/repository/org/apache/lucene/lucene-core/7.3.1/lucene-core-7.3.1.jar:/Users/zhanghao/.m2/repository/org/apache/lucene/lucene-analyzers-common/7.3.1/lucene-analyzers-common-7.3.1.jar:/Users/zhanghao/.m2/repository/org/apache/lucene/lucene-backward-codecs/7.3.1/lucene-backward-codecs-7.3.1.jar:/Users/zhanghao/.m2/repository/org/apache/lucene/lucene-grouping/7.3.1/lucene-grouping-7.3.1.jar:/Users/zhanghao/.m2/repository/org/apache/lucene/lucene-highlighter/7.3.1/lucene-highlighter-7.3.1.jar:/Users/zhanghao/.m2/repository/org/apache/lucene/lucene-join/7.3.1/lucene-join-7.3.1.jar:/Users/zhanghao/.m2/repository/org/apache/lucene/lucene-memory/7.3.1/lucene-memory-7.3.1.jar:/Users/zhanghao/.m2/repository/org/apache/lucene/lucene-misc/7.3.1/lucene-misc-7.3.1.jar:/Users/zhanghao/.m2/repository/org/apache/lucene/lucene-queries/7.3.1/lucene-queries-7.3.1.jar:/Users/zhanghao/.m2/repository/org/apache/lucene/lucene-queryparser/7.3.1/lucene-queryparser-7.3.1.jar:/Users/zhanghao/.m2/repository/org/apache/lucene/lucene-sandbox/7.3.1/lucene-sandbox-7.3.1.jar:/Users/zhanghao/.m2/repository/org/apache/lucene/lucene-spatial/7.3.1/lucene-spatial-7.3.1.jar:/Users/zhanghao/.m2/repository/org/apache/lucene/lucene-spatial-extras/7.3.1/lucene-spatial-extras-7.3.1.jar:/Users/zhanghao/.m2/repository/org/apache/lucene/lucene-spatial3d/7.3.1/lucene-spatial3d-7.3.1.jar:/Users/zhanghao/.m2/repository/org/apache/lucene/lucene-suggest/7.3.1/lucene-suggest-7.3.1.jar:/Users/zhanghao/.m2/repository/org/elasticsearch/elasticsearch-cli/6.3.1/elasticsearch-cli-6.3.1.jar:/Users/zhanghao/.m2/repository/net/sf/jopt-simple/jopt-simple/5.0.2/jopt-simple-5.0.2.jar:/Users/zhanghao/.m2/repository/com/carrotsearch/hppc/0.7.1/hppc-0.7.1.jar:/Users/zhanghao/.m2/repository/com/tdunning/t-digest/3.2/t-digest-3.2.jar:/Users/zhanghao/.m2/repository/org/hdrhistogram/HdrHistogram/2.1.9/HdrHistogram-2.1.9.jar:/Users/zhanghao/.m2/repository/org/elasticsearch/jna/4.5.1/jna-4.5.1.jar:/Users/zhanghao/.m2/repository/org/elasticsearch/client/elasticsearch-rest-client/6.3.1/elasticsearch-rest-client-6.3.1.jar:/Users/zhanghao/.m2/repository/org/apache/httpcomponents/httpasyncclient/4.1.2/httpasyncclient-4.1.2.jar:/Users/zhanghao/.m2/repository/org/apache/httpcomponents/httpcore-nio/4.4.5/httpcore-nio-4.4.5.jar:/Users/zhanghao/.m2/repository/org/elasticsearch/plugin/parent-join-client/6.3.1/parent-join-client-6.3.1.jar:/Users/zhanghao/.m2/repository/org/elasticsearch/plugin/aggs-matrix-stats-client/6.3.1/aggs-matrix-stats-client-6.3.1.jar:/Users/zhanghao/.m2/repository/org/elasticsearch/plugin/rank-eval-client/6.3.1/rank-eval-client-6.3.1.jar:/Users/zhanghao/.m2/repository/org/apache/flink/flink-connector-jdbc_2.11/1.14.3/flink-connector-jdbc_2.11-1.14.3.jar:/Users/zhanghao/.m2/repository/com/h2database/h2/1.4.200/h2-1.4.200.jar:/Users/zhanghao/.m2/repository/com/ververica/flink-connector-mysql-cdc/2.4-SNAPSHOT/flink-connector-mysql-cdc-2.4-SNAPSHOT.jar:/Users/zhanghao/.m2/repository/com/ververica/flink-connector-debezium/2.4-SNAPSHOT/flink-connector-debezium-2.4-SNAPSHOT.jar:/Users/zhanghao/.m2/repository/io/debezium/debezium-api/1.6.4.Final/debezium-api-1.6.4.Final.jar:/Users/zhanghao/.m2/repository/io/debezium/debezium-embedded/1.6.4.Final/debezium-embedded-1.6.4.Final.jar:/Users/zhanghao/.m2/repository/org/apache/kafka/connect-api/2.7.1/connect-api-2.7.1.jar:/Users/zhanghao/.m2/repository/org/apache/kafka/kafka-clients/2.7.1/kafka-clients-2.7.1.jar:/Users/zhanghao/.m2/repository/com/github/luben/zstd-jni/1.4.5-6/zstd-jni-1.4.5-6.jar:/Users/zhanghao/.m2/repository/javax/ws/rs/javax.ws.rs-api/2.1.1/javax.ws.rs-api-2.1.1.jar:/Users/zhanghao/.m2/repository/org/apache/kafka/connect-runtime/2.7.1/connect-runtime-2.7.1.jar:/Users/zhanghao/.m2/repository/org/apache/kafka/kafka-tools/2.7.1/kafka-tools-2.7.1.jar:/Users/zhanghao/.m2/repository/net/sourceforge/argparse4j/argparse4j/0.7.0/argparse4j-0.7.0.jar:/Users/zhanghao/.m2/repository/org/apache/kafka/connect-transforms/2.7.1/connect-transforms-2.7.1.jar:/Users/zhanghao/.m2/repository/org/glassfish/jersey/containers/jersey-container-servlet/2.31/jersey-container-servlet-2.31.jar:/Users/zhanghao/.m2/repository/org/glassfish/jersey/containers/jersey-container-servlet-core/2.31/jersey-container-servlet-core-2.31.jar:/Users/zhanghao/.m2/repository/org/glassfish/hk2/external/jakarta.inject/2.6.1/jakarta.inject-2.6.1.jar:/Users/zhanghao/.m2/repository/jakarta/ws/rs/jakarta.ws.rs-api/2.1.6/jakarta.ws.rs-api-2.1.6.jar:/Users/zhanghao/.m2/repository/org/glassfish/jersey/inject/jersey-hk2/2.31/jersey-hk2-2.31.jar:/Users/zhanghao/.m2/repository/org/glassfish/hk2/hk2-locator/2.6.1/hk2-locator-2.6.1.jar:/Users/zhanghao/.m2/repository/org/glassfish/hk2/external/aopalliance-repackaged/2.6.1/aopalliance-repackaged-2.6.1.jar:/Users/zhanghao/.m2/repository/org/glassfish/hk2/hk2-api/2.6.1/hk2-api-2.6.1.jar:/Users/zhanghao/.m2/repository/org/glassfish/hk2/hk2-utils/2.6.1/hk2-utils-2.6.1.jar:/Users/zhanghao/.m2/repository/javax/activation/activation/1.1.1/activation-1.1.1.jar:/Users/zhanghao/.m2/repository/org/eclipse/jetty/jetty-servlets/9.4.38.v20210224/jetty-servlets-9.4.38.v20210224.jar:/Users/zhanghao/.m2/repository/org/eclipse/jetty/jetty-continuation/9.4.38.v20210224/jetty-continuation-9.4.38.v20210224.jar:/Users/zhanghao/.m2/repository/org/eclipse/jetty/jetty-client/9.4.38.v20210224/jetty-client-9.4.38.v20210224.jar:/Users/zhanghao/.m2/repository/org/reflections/reflections/0.9.12/reflections-0.9.12.jar:/Users/zhanghao/.m2/repository/org/apache/maven/maven-artifact/3.6.3/maven-artifact-3.6.3.jar:/Users/zhanghao/.m2/repository/org/codehaus/plexus/plexus-utils/3.2.1/plexus-utils-3.2.1.jar:/Users/zhanghao/.m2/repository/org/apache/kafka/connect-json/2.7.1/connect-json-2.7.1.jar:/Users/zhanghao/.m2/repository/com/fasterxml/jackson/datatype/jackson-datatype-jdk8/2.10.5/jackson-datatype-jdk8-2.10.5.jar:/Users/zhanghao/.m2/repository/org/apache/kafka/connect-file/2.7.1/connect-file-2.7.1.jar:/Users/zhanghao/.m2/repository/io/debezium/debezium-connector-mysql/1.6.4.Final/debezium-connector-mysql-1.6.4.Final.jar:/Users/zhanghao/.m2/repository/io/debezium/debezium-core/1.6.4.Final/debezium-core-1.6.4.Final.jar:/Users/zhanghao/.m2/repository/com/fasterxml/jackson/datatype/jackson-datatype-jsr310/2.10.5/jackson-datatype-jsr310-2.10.5.jar:/Users/zhanghao/.m2/repository/io/debezium/debezium-ddl-parser/1.6.4.Final/debezium-ddl-parser-1.6.4.Final.jar:/Users/zhanghao/.m2/repository/org/antlr/antlr4-runtime/4.8/antlr4-runtime-4.8.jar:/Users/zhanghao/.m2/repository/com/zendesk/mysql-binlog-connector-java/0.25.3/mysql-binlog-connector-java-0.25.3.jar:/Users/zhanghao/.m2/repository/com/esri/geometry/esri-geometry-api/2.2.0/esri-geometry-api-2.2.0.jar:/Users/zhanghao/.m2/repository/com/zaxxer/HikariCP/4.0.3/HikariCP-4.0.3.jar:/Users/zhanghao/.m2/repository/org/awaitility/awaitility/4.0.1/awaitility-4.0.1.jar:/Users/zhanghao/.m2/repository/org/hamcrest/hamcrest/2.1/hamcrest-2.1.jar:/Users/zhanghao/.m2/repository/org/apache/hive/hive-exec/3.1.2/hive-exec-3.1.2.jar:/Users/zhanghao/.m2/repository/org/apache/hive/hive-vector-code-gen/3.1.2/hive-vector-code-gen-3.1.2.jar:/Users/zhanghao/.m2/repository/commons-lang/commons-lang/2.6/commons-lang-2.6.jar:/Users/zhanghao/.m2/repository/org/apache/velocity/velocity/1.5/velocity-1.5.jar:/Users/zhanghao/.m2/repository/oro/oro/2.0.8/oro-2.0.8.jar:/Users/zhanghao/.m2/repository/org/apache/hive/hive-llap-tez/3.1.2/hive-llap-tez-3.1.2.jar:/Users/zhanghao/.m2/repository/org/apache/hive/hive-common/3.1.2/hive-common-3.1.2.jar:/Users/zhanghao/.m2/repository/org/apache/hive/hive-classification/3.1.2/hive-classification-3.1.2.jar:/Users/zhanghao/.m2/repository/org/apache/hive/hive-storage-api/2.7.0/hive-storage-api-2.7.0.jar:/Users/zhanghao/.m2/repository/org/apache/orc/orc-core/1.5.6/orc-core-1.5.6.jar:/Users/zhanghao/.m2/repository/org/apache/orc/orc-shims/1.5.6/orc-shims-1.5.6.jar:/Users/zhanghao/.m2/repository/io/airlift/aircompressor/0.10/aircompressor-0.10.jar:/Users/zhanghao/.m2/repository/org/apache/hadoop/hadoop-hdfs/2.2.0/hadoop-hdfs-2.2.0.jar:/Users/zhanghao/.m2/repository/com/sun/jersey/jersey-server/1.9/jersey-server-1.9.jar:/Users/zhanghao/.m2/repository/asm/asm/3.1/asm-3.1.jar:/Users/zhanghao/.m2/repository/xmlenc/xmlenc/0.52/xmlenc-0.52.jar:/Users/zhanghao/.m2/repository/org/eclipse/jetty/jetty-http/9.3.20.v20170531/jetty-http-9.3.20.v20170531.jar:/Users/zhanghao/.m2/repository/org/eclipse/jetty/jetty-rewrite/9.3.20.v20170531/jetty-rewrite-9.3.20.v20170531.jar:/Users/zhanghao/.m2/repository/org/eclipse/jetty/jetty-server/9.3.20.v20170531/jetty-server-9.3.20.v20170531.jar:/Users/zhanghao/.m2/repository/org/eclipse/jetty/jetty-io/9.3.20.v20170531/jetty-io-9.3.20.v20170531.jar:/Users/zhanghao/.m2/repository/org/apache/logging/log4j/log4j-web/2.10.0/log4j-web-2.10.0.jar:/Users/zhanghao/.m2/repository/net/sf/jpam/jpam/1.1/jpam-1.1.jar:/Users/zhanghao/.m2/repository/com/tdunning/json/1.8/json-1.8.jar:/Users/zhanghao/.m2/repository/io/dropwizard/metrics/metrics-core/3.1.0/metrics-core-3.1.0.jar:/Users/zhanghao/.m2/repository/io/dropwizard/metrics/metrics-jvm/3.1.0/metrics-jvm-3.1.0.jar:/Users/zhanghao/.m2/repository/io/dropwizard/metrics/metrics-json/3.1.0/metrics-json-3.1.0.jar:/Users/zhanghao/.m2/repository/com/github/joshelser/dropwizard-metrics-hadoop-metrics2-reporter/0.1.2/dropwizard-metrics-hadoop-metrics2-reporter-0.1.2.jar:/Users/zhanghao/.m2/repository/javolution/javolution/5.5.1/javolution-5.5.1.jar:/Users/zhanghao/.m2/repository/org/apache/hive/hive-llap-client/3.1.2/hive-llap-client-3.1.2.jar:/Users/zhanghao/.m2/repository/org/apache/hive/hive-llap-common/3.1.2/hive-llap-common-3.1.2.jar:/Users/zhanghao/.m2/repository/org/apache/hive/hive-serde/3.1.2/hive-serde-3.1.2.jar:/Users/zhanghao/.m2/repository/org/apache/hive/hive-service-rpc/3.1.2/hive-service-rpc-3.1.2.jar:/Users/zhanghao/.m2/repository/org/apache/arrow/arrow-vector/0.8.0/arrow-vector-0.8.0.jar:/Users/zhanghao/.m2/repository/org/apache/arrow/arrow-format/0.8.0/arrow-format-0.8.0.jar:/Users/zhanghao/.m2/repository/org/apache/arrow/arrow-memory/0.8.0/arrow-memory-0.8.0.jar:/Users/zhanghao/.m2/repository/io/netty/netty-buffer/4.1.17.Final/netty-buffer-4.1.17.Final.jar:/Users/zhanghao/.m2/repository/io/netty/netty-common/4.1.17.Final/netty-common-4.1.17.Final.jar:/Users/zhanghao/.m2/repository/com/vlkan/flatbuffers/1.2.0-3f79e055/flatbuffers-1.2.0-3f79e055.jar:/Users/zhanghao/.m2/repository/net/sf/opencsv/opencsv/2.3/opencsv-2.3.jar:/Users/zhanghao/.m2/repository/org/apache/parquet/parquet-hadoop-bundle/1.10.0/parquet-hadoop-bundle-1.10.0.jar:/Users/zhanghao/.m2/repository/org/apache/hive/hive-shims/3.1.2/hive-shims-3.1.2.jar:/Users/zhanghao/.m2/repository/org/apache/hive/shims/hive-shims-common/3.1.2/hive-shims-common-3.1.2.jar:/Users/zhanghao/.m2/repository/org/apache/hive/shims/hive-shims-0.23/3.1.2/hive-shims-0.23-3.1.2.jar:/Users/zhanghao/.m2/repository/org/apache/hadoop/hadoop-yarn-server-resourcemanager/3.1.0/hadoop-yarn-server-resourcemanager-3.1.0.jar:/Users/zhanghao/.m2/repository/com/google/inject/extensions/guice-servlet/4.0/guice-servlet-4.0.jar:/Users/zhanghao/.m2/repository/com/google/inject/guice/4.0/guice-4.0.jar:/Users/zhanghao/.m2/repository/javax/inject/javax.inject/1/javax.inject-1.jar:/Users/zhanghao/.m2/repository/aopalliance/aopalliance/1.0/aopalliance-1.0.jar:/Users/zhanghao/.m2/repository/com/sun/jersey/jersey-json/1.19/jersey-json-1.19.jar:/Users/zhanghao/.m2/repository/com/sun/xml/bind/jaxb-impl/2.2.3-1/jaxb-impl-2.2.3-1.jar:/Users/zhanghao/.m2/repository/org/codehaus/jackson/jackson-jaxrs/1.9.2/jackson-jaxrs-1.9.2.jar:/Users/zhanghao/.m2/repository/org/codehaus/jackson/jackson-xc/1.9.2/jackson-xc-1.9.2.jar:/Users/zhanghao/.m2/repository/com/sun/jersey/contribs/jersey-guice/1.19/jersey-guice-1.19.jar:/Users/zhanghao/.m2/repository/org/codehaus/jettison/jettison/1.1/jettison-1.1.jar:/Users/zhanghao/.m2/repository/org/eclipse/jetty/jetty-util-ajax/9.3.19.v20170502/jetty-util-ajax-9.3.19.v20170502.jar:/Users/zhanghao/.m2/repository/org/apache/hadoop/hadoop-yarn-server-common/3.1.0/hadoop-yarn-server-common-3.1.0.jar:/Users/zhanghao/.m2/repository/org/apache/geronimo/specs/geronimo-jcache_1.0_spec/1.0-alpha-1/geronimo-jcache_1.0_spec-1.0-alpha-1.jar:/Users/zhanghao/.m2/repository/org/ehcache/ehcache/3.3.1/ehcache-3.3.1.jar:/Users/zhanghao/.m2/repository/com/zaxxer/HikariCP-java7/2.4.12/HikariCP-java7-2.4.12.jar:/Users/zhanghao/.m2/repository/com/microsoft/sqlserver/mssql-jdbc/6.2.1.jre7/mssql-jdbc-6.2.1.jre7.jar:/Users/zhanghao/.m2/repository/org/apache/hadoop/hadoop-yarn-server-applicationhistoryservice/3.1.0/hadoop-yarn-server-applicationhistoryservice-3.1.0.jar:/Users/zhanghao/.m2/repository/de/ruedigermoeller/fst/2.50/fst-2.50.jar:/Users/zhanghao/.m2/repository/com/cedarsoftware/java-util/1.9.0/java-util-1.9.0.jar:/Users/zhanghao/.m2/repository/com/cedarsoftware/json-io/2.5.1/json-io-2.5.1.jar:/Users/zhanghao/.m2/repository/org/apache/hadoop/hadoop-yarn-server-web-proxy/3.1.0/hadoop-yarn-server-web-proxy-3.1.0.jar:/Users/zhanghao/.m2/repository/org/fusesource/leveldbjni/leveldbjni-all/1.8/leveldbjni-all-1.8.jar:/Users/zhanghao/.m2/repository/org/apache/hive/shims/hive-shims-scheduler/3.1.2/hive-shims-scheduler-3.1.2.jar:/Users/zhanghao/.m2/repository/commons-codec/commons-codec/1.7/commons-codec-1.7.jar:/Users/zhanghao/.m2/repository/commons-io/commons-io/2.4/commons-io-2.4.jar:/Users/zhanghao/.m2/repository/org/apache/logging/log4j/log4j-1.2-api/2.10.0/log4j-1.2-api-2.10.0.jar:/Users/zhanghao/.m2/repository/org/apache/logging/log4j/log4j-api/2.10.0/log4j-api-2.10.0.jar:/Users/zhanghao/.m2/repository/org/apache/logging/log4j/log4j-core/2.10.0/log4j-core-2.10.0.jar:/Users/zhanghao/.m2/repository/org/antlr/antlr-runtime/3.5.2/antlr-runtime-3.5.2.jar:/Users/zhanghao/.m2/repository/org/antlr/ST4/4.0.4/ST4-4.0.4.jar:/Users/zhanghao/.m2/repository/org/apache/ant/ant/1.9.1/ant-1.9.1.jar:/Users/zhanghao/.m2/repository/org/apache/ant/ant-launcher/1.9.1/ant-launcher-1.9.1.jar:/Users/zhanghao/.m2/repository/org/apache/commons/commons-compress/1.9/commons-compress-1.9.jar:/Users/zhanghao/.m2/repository/org/apache/thrift/libfb303/0.9.3/libfb303-0.9.3.jar:/Users/zhanghao/.m2/repository/org/apache/thrift/libthrift/0.9.3/libthrift-0.9.3.jar:/Users/zhanghao/.m2/repository/org/apache/hadoop/hadoop-yarn-registry/3.1.0/hadoop-yarn-registry-3.1.0.jar:/Users/zhanghao/.m2/repository/commons-daemon/commons-daemon/1.0.13/commons-daemon-1.0.13.jar:/Users/zhanghao/.m2/repository/org/apache/ivy/ivy/2.4.0/ivy-2.4.0.jar:/Users/zhanghao/.m2/repository/org/apache/zookeeper/zookeeper/3.4.6/zookeeper-3.4.6.jar:/Users/zhanghao/.m2/repository/jline/jline/0.9.94/jline-0.9.94.jar:/Users/zhanghao/.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar:/Users/zhanghao/.m2/repository/io/netty/netty/3.7.0.Final/netty-3.7.0.Final.jar:/Users/zhanghao/.m2/repository/org/apache/curator/curator-framework/2.12.0/curator-framework-2.12.0.jar:/Users/zhanghao/.m2/repository/org/codehaus/groovy/groovy-all/2.4.11/groovy-all-2.4.11.jar:/Users/zhanghao/.m2/repository/com/fasterxml/jackson/core/jackson-annotations/2.9.5/jackson-annotations-2.9.5.jar:/Users/zhanghao/.m2/repository/com/fasterxml/jackson/core/jackson-core/2.9.5/jackson-core-2.9.5.jar:/Users/zhanghao/.m2/repository/com/fasterxml/jackson/core/jackson-databind/2.9.5/jackson-databind-2.9.5.jar:/Users/zhanghao/.m2/repository/org/datanucleus/datanucleus-core/4.1.17/datanucleus-core-4.1.17.jar:/Users/zhanghao/.m2/repository/org/apache/calcite/calcite-core/1.16.0/calcite-core-1.16.0.jar:/Users/zhanghao/.m2/repository/org/apache/calcite/calcite-linq4j/1.16.0/calcite-linq4j-1.16.0.jar:/Users/zhanghao/.m2/repository/commons-dbcp/commons-dbcp/1.4/commons-dbcp-1.4.jar:/Users/zhanghao/.m2/repository/com/yahoo/datasketches/sketches-core/0.9.0/sketches-core-0.9.0.jar:/Users/zhanghao/.m2/repository/com/yahoo/datasketches/memory/0.9.0/memory-0.9.0.jar:/Users/zhanghao/.m2/repository/org/codehaus/janino/commons-compiler/2.7.6/commons-compiler-2.7.6.jar:/Users/zhanghao/.m2/repository/org/apache/calcite/calcite-druid/1.16.0/calcite-druid-1.16.0.jar:/Users/zhanghao/.m2/repository/org/apache/calcite/avatica/avatica/1.11.0/avatica-1.11.0.jar:/Users/zhanghao/.m2/repository/com/google/code/gson/gson/2.2.4/gson-2.2.4.jar:/Users/zhanghao/.m2/repository/stax/stax-api/1.0.1/stax-api-1.0.1.jar:/Users/zhanghao/.m2/repository/org/apache/hive/hive-upgrade-acid/3.1.2/hive-upgrade-acid-3.1.2.jar:/Users/zhanghao/.m2/repository/org/apache/flink/flink-connector-hive_2.11/1.14.3/flink-connector-hive_2.11-1.14.3.jar:/Users/zhanghao/.m2/repository/com/google/protobuf/protobuf-java/3.11.4/protobuf-java-3.11.4.jar:/Users/zhanghao/.m2/repository/com/excalibur/excalibur-core/4.3.1-SNAPSHOT/excalibur-core-4.3.1-20221214.070819-23.jar:/Users/zhanghao/.m2/repository/com/excalibur/excalibur-security/4.3.1-SNAPSHOT/excalibur-security-4.3.1-20221214.070816-23.jar:/Users/zhanghao/.m2/repository/org/bouncycastle/bcprov-jdk15on/1.60/bcprov-jdk15on-1.60.jar:/Users/zhanghao/.m2/repository/org/apache/commons/commons-lang3/3.3.2/commons-lang3-3.3.2.jar:/Users/zhanghao/.m2/repository/com/google/guava/guava/23.0/guava-23.0.jar:/Users/zhanghao/.m2/repository/com/google/errorprone/error_prone_annotations/2.0.18/error_prone_annotations-2.0.18.jar:/Users/zhanghao/.m2/repository/com/google/j2objc/j2objc-annotations/1.1/j2objc-annotations-1.1.jar:/Users/zhanghao/.m2/repository/org/codehaus/mojo/animal-sniffer-annotations/1.14/animal-sniffer-annotations-1.14.jar:/Users/zhanghao/.m2/repository/joda-time/joda-time/2.11.1/joda-time-2.11.1.jar:/Users/zhanghao/.m2/repository/com/jayway/jsonpath/json-path/2.7.0/json-path-2.7.0.jar:/Users/zhanghao/.m2/repository/net/minidev/json-smart/2.4.7/json-smart-2.4.7.jar:/Users/zhanghao/.m2/repository/net/minidev/accessors-smart/2.4.7/accessors-smart-2.4.7.jar:/Users/zhanghao/.m2/repository/org/ow2/asm/asm/9.1/asm-9.1.jar:/Users/zhanghao/.m2/repository/org/aspectj/aspectjweaver/1.9.1/aspectjweaver-1.9.1.jar:/Users/zhanghao/.m2/repository/org/modelmapper/modelmapper/2.3.0/modelmapper-2.3.0.jar com.learn.bigdata.flink.batch.DwdOrderInfo
objc[22954]: Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/bin/java (0x107e884c0) and /Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/jre/lib/libinstrument.dylib (0x1080504e0). One of the two will be used. Which one is undefined.
2023-01-08 15:53:01,750 [main] [org.apache.hadoop.util.NativeCodeLoader] [WARN] - Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
Hive Session ID = 445a1dfb-022f-40c8-9e3b-9f1e9a65cfaf
Hive Session ID = 5743d4d0-cdbc-4fb0-a6e8-9c6a6140e200
Exception in thread "main" java.lang.RuntimeException: org.apache.hadoop.hive.ql.parse.SemanticException: Line 1:38 Invalid table alias or column reference 'user_id': (possible column names are: )
	at org.apache.flink.table.planner.delegation.hive.HiveParserCalcitePlanner.logicalPlan(HiveParserCalcitePlanner.java:304)
	at org.apache.flink.table.planner.delegation.hive.HiveParserCalcitePlanner.genLogicalPlan(HiveParserCalcitePlanner.java:272)
	at org.apache.flink.table.planner.delegation.hive.HiveParser.analyzeSql(HiveParser.java:290)
	at org.apache.flink.table.planner.delegation.hive.HiveParser.processCmd(HiveParser.java:238)
	at org.apache.flink.table.planner.delegation.hive.HiveParser.parse(HiveParser.java:208)
	at org.apache.flink.table.api.internal.TableEnvironmentImpl.executeSql(TableEnvironmentImpl.java:736)
	at com.learn.bigdata.flink.batch.DwdOrderInfo.main(DwdOrderInfo.java:39)
Caused by: org.apache.hadoop.hive.ql.parse.SemanticException: Line 1:38 Invalid table alias or column reference 'user_id': (possible column names are: )
	at org.apache.flink.table.planner.delegation.hive.copy.HiveParserSemanticAnalyzer.genAllExprNodeDesc(HiveParserSemanticAnalyzer.java:2399)
	at org.apache.flink.table.planner.delegation.hive.copy.HiveParserSemanticAnalyzer.genExprNodeDesc(HiveParserSemanticAnalyzer.java:2353)
	at org.apache.flink.table.planner.delegation.hive.HiveParserCalcitePlanner.genSelectLogicalPlan(HiveParserCalcitePlanner.java:2291)
	at org.apache.flink.table.planner.delegation.hive.HiveParserCalcitePlanner.genLogicalPlan(HiveParserCalcitePlanner.java:2749)
	at org.apache.flink.table.planner.delegation.hive.HiveParserCalcitePlanner.logicalPlan(HiveParserCalcitePlanner.java:284)
	... 6 more

Process finished with exit code 1

问题找了好久了都没找到,不知道那里错了

正在回答 回答被采纳积分+1

登陆购买课程后可参与讨论,去登陆

1回答
徐老师 2023-01-08 16:30:00

从错误信息上来看提示的是找不到user_id这个列名。


1:可能是你之前创建的flink_table或者 hive_table表中没有user_id这个名字,因为你使用的是create table if exists,表存在之后就不会重复创建了。

2:也有可能是user_id这个列名有问题


建议你这样修改之后再执行测试一下:

1:修改目前的flink_table和hive_table这两个表名

2:修改user_id这个列名,例如:改成uid

  • 提问者 慕少4838798 #1

    flin_table的建表语句

    https://img1.sycdn.imooc.com//climg/63baa5ea09efba5515241008.jpg

    hive_table的建表语句:

    https://img1.sycdn.imooc.com//climg/63baa60c0961c20a17500834.jpg

    从hive中看两个语句中都包含uid字段,我尝试了您给我的解决方案更换了user_id为uid还是不行。报如下错误

    Caused by: org.apache.hadoop.hive.ql.parse.SemanticException: Line 1:36 Invalid table alias or column reference 'uid': (possible column names are: )
    	at org.apache.flink.table.planner.delegation.hive.copy.HiveParserSemanticAnalyzer.genAllExprNodeDesc(HiveParserSemanticAnalyzer.java:2399)
    	at org.apache.flink.table.planner.delegation.hive.copy.HiveParserSemanticAnalyzer.genExprNodeDesc(HiveParserSemanticAnalyzer.java:2353)
    	at org.apache.flink.table.planner.delegation.hive.HiveParserCalcitePlanner.genSelectLogicalPlan(HiveParserCalcitePlanner.java:2291)
    	at org.apache.flink.table.planner.delegation.hive.HiveParserCalcitePlanner.genLogicalPlan(HiveParserCalcitePlanner.java:2749)
    	at org.apache.flink.table.planner.delegation.hive.HiveParserCalcitePlanner.logicalPlan(HiveParserCalcitePlanner.java:284)
    	... 6 more

    就是不加最后依据写入hive的代码只执行打印flink_table或者hive_table均正常

    2023-01-08 19:18:55
  • 其实flink sql借助于hive主要是为了解决元数据存储问题,并不是为了去读写hive自己的表,所以现在遇到了问题,估计后期可能会支持这种需求吧
    2023-01-08 19:43:13
问题已解决,确定采纳
还有疑问,暂不采纳

恭喜解决一个难题,获得1积分~

来为老师/同学的回答评分吧

0 星
请稍等 ...
意见反馈 帮助中心 APP下载
官方微信

在线咨询

领取优惠

免费试听

领取大纲

扫描二维码,添加
你的专属老师