更新时间:2025-02-12 GMT+08:00
FlinkSQL Hive表开发规则
提前在Hive中创建表
- Flink作业在Hive中找不到对应表会报错,所以需要提前在Hive客户端创建好对应的表。
- FlinkServer对接Hive使用对接MetaStore的方式,故需要Hive开启MetaStore功能。

查看Hive是否开启MetaStore功能:
登录FusionInsight Manager,选择“集群 > 服务 > Hive > 配置 > 全部配置”,搜索参数“hive-ext.dlcatalog.metastore.client.enable”,查看该参数的值是否为“false”。
若为“false”,表示当前Hive已开启MetaStore功能;若为“true”,表示当前Hive已开启LakeFormation,未使用MetaStore功能。