首页 > 其他分享 >flink1.16连接hive2.3.9依赖报错

flink1.16连接hive2.3.9依赖报错

时间:2023-03-27 13:03:59浏览次数:59  
标签:hive2.3 flink hive connector 报错 apache org flink1.16 2.12

Caused by: java.lang.ClassNotFoundException: org.apache.flink.table.gateway.api.endpoint.SqlGatewayEndpointFactory

原来的导包依赖是:

 <groupId>org.apache.flink</groupId>
      <artifactId>flink-connector-hive_2.12</artifactId>
      <version>${flink.version}</version>
    </dependency>-->


后面上网查了:https://blog.csdn.net/Chenftli/article/details/125235160

尝试将导包依赖修改为:

<dependency>
      <groupId>org.apache.flink</groupId>
      <artifactId>flink-sql-connector-hive-2.3.9_2.12</artifactId>
      <version>1.16.0</version>
      <scope>provided</scope>

可以正常跑通。

标签:hive2.3,flink,hive,connector,报错,apache,org,flink1.16,2.12
From: https://blog.51cto.com/u_15345945/6151686

相关文章