Hive Metastore 連線

Hive Metastore 連線型別用於啟用 Hive Metastore 整合。

認證 Hive Metastore

透過 Apache Thrift Hive Serverhmsclient 對 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'

此條目有幫助嗎?