Hive Metastore 连接¶
Hive Metastore 连接类型用于启用 Hive Metastore 集成。
认证 Hive Metastore¶
通过 Apache Thrift Hive Server 和 hmsclient 对 Hive Metastore 进行认证。
默认连接 ID¶
与 Hive Metastore 相关的所有 hooks 和 operators 默认使用 metastore_default
。
配置连接¶
- 主机 (可选)
您的 Hive Metastore 节点的主机。可以指定多个主机,用逗号分隔。
- 端口 (可选)
您的 Hive Metastore 端口号。
- 额外参数 (可选)
指定可在 Hive Metastore 连接中使用的额外参数(作为 JSON 字典)。以下参数均为可选:
auth_mechanism
指定认证机制。默认值为NOSASL
。kerberos_service_name
指定 kerberos 服务名。默认值为hive
。
在环境变量中指定连接时,应使用 URI 语法来指定。
请注意,URI 的所有组件都应进行 URL 编码。
例如
export AIRFLOW_CONN_METASTORE_DEFAULT='hive-metastore://hive-metastore-node:80?auth_mechanism=NOSASL'