Skip to content

[python legacy] Support passing customized protocol for hms client#4041

Merged
rdblue merged 1 commit intoapache:masterfrom
puchengy:python_legacy_custom_protocol_hms
Feb 6, 2022
Merged

[python legacy] Support passing customized protocol for hms client#4041
rdblue merged 1 commit intoapache:masterfrom
puchengy:python_legacy_custom_protocol_hms

Conversation

@puchengy
Copy link
Contributor

@puchengy puchengy commented Feb 4, 2022

This is to enable kerberized HMS support.

@github-actions github-actions bot added the python label Feb 4, 2022
@puchengy
Copy link
Contributor Author

puchengy commented Feb 4, 2022

@jun-he @TGooch44 could you take a look? Thanks.


def get_client(self) -> HMSClient:
from urllib.parse import urlparse
iprot = self.conf.get(HiveTables.IPROT)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to put a default value? Will it still work if iprot and oprot are None value?

Copy link
Contributor Author

@puchengy puchengy Feb 6, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jun-he I don't think we need a default value. As when iprot is None, it will just use host and port value. https://github.com/gglanzani/hmsclient/blob/master/hmsclient/hmsclient.py#L42

@rdblue rdblue merged commit 7f08fe7 into apache:master Feb 6, 2022
@rdblue
Copy link
Contributor

rdblue commented Feb 6, 2022

Thanks, @puchengy!

puchengy added a commit to pinterest/iceberg that referenced this pull request Feb 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants