Skip to content

Support for Hive metastore gRPC #1846

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
sumanth-manchala opened this issue Mar 25, 2025 · 1 comment
Open

Support for Hive metastore gRPC #1846

sumanth-manchala opened this issue Mar 25, 2025 · 1 comment

Comments

@sumanth-manchala
Copy link
Contributor

Question

Does pyiceberg supports Hive metastore exposed over gRPC instead of thrift? we are planning to use GCP's Dataproc metastore as Iceberg's catalog and would like to know the support of gRPC

https://cloud.google.com/dataproc-metastore/docs/about-endpoint-protocols

@kevinjqliu
Copy link
Contributor

i believe we only have thrift client implemented, not grpc

def _init_thrift_client(self) -> None:
url_parts = urlparse(self._uri)
socket = TSocket.TSocket(url_parts.hostname, url_parts.port)
if not self._kerberos_auth:
self._transport = TTransport.TBufferedTransport(socket)
else:
self._transport = TTransport.TSaslClientTransport(socket, host=url_parts.hostname, service="hive")
protocol = TBinaryProtocol.TBinaryProtocol(self._transport)
self._client = Client(protocol)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants