apache / apache/iceberg-python

Support DIGEST-MD5 / delegation token authentication for HMS

オープン
#3,145 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
stale
主要言語
Python
スター
1.1k
フォーク
581
平均マージ
1日 17時間
マージ済み PR(30日)
77

説明

### Feature Request / Improvement

#### Summary
PyIceberg's HiveCatalog supports Kerberos (GSSAPI) authentication via `hive.kerberos-authentication`, but does not support DIGEST-MD5 SASL authentication with Hadoop delegation tokens. In many production Hadoop environments, pods/containers authenticate to HMS using delegation tokens (read from `$HADOOP_TOKEN_FILE_LOCATION`) rather than Kerberos keytabs. This means PyIceberg's Hive catalog cannot be used in these environments without building a custom client.

#### Proposed Enhancement
Extend `_HiveClient` to support DIGEST-MD5 delegation token auth:
1. Add a new config property (e.g. `hive.metastore.authentication=DIGEST-MD5`)
2. When DIGEST-MD5 is configured, read credentials from `$HADOOP_TOKEN_FILE_LOCATION` (Hadoop Writable credentials format)
3. Use `TSaslClientTransport` with mechanism=DIGEST-MD5 and the extracted token identifier/password

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

_HiveClient と既存の hive.kerberos-authentication パスから始め、次に TSaslClientTransport がどのように設定されているかを調べます。DIGEST-MD5 が $HADOOP_TOKEN_FILE_LOCATION から Hadoop Writable credentials を読み取り、HMS 認証にトークン識別子とパスワードを使用すれば、作業は完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
hadoop, python
領域
backend, databases
issue の種類
機能追加
難易度
5/5
見積もり時間
1週間以上
活発さ
活発
明瞭さ
おおむね明確
初心者へのやさしさ
45/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。