Skip to content
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

[#3906] improvement(hive-catalog): Add user authentication IT for multiple HMS #3907

Merged
merged 13 commits into from
Aug 1, 2024

Conversation

yuqi1129
Copy link
Contributor

What changes were proposed in this pull request?

Add IT about user authentication for Hive catalog with Kerberos enabled.

Why are the changes needed?

To cover more usage cases.

Fix: #3906

Does this PR introduce any user-facing change?

N/A.

How was this patch tested?

N/A

@yuqi1129 yuqi1129 marked this pull request as draft June 19, 2024 10:07
@yuqi1129 yuqi1129 self-assigned this Jul 23, 2024
@yuqi1129 yuqi1129 marked this pull request as ready for review July 29, 2024 01:33
@yuqi1129 yuqi1129 changed the title [#3906] improvement(CI): Add user authentication IT for multiple HMS [#3906] improvement(hive-catalog): Add user authentication IT for multiple HMS Jul 29, 2024
@yuqi1129 yuqi1129 requested a review from mchades July 29, 2024 07:36
@yuqi1129
Copy link
Contributor Author

@mchades
Would you be able to help me review this PR if you have some free time?

String ip = kerberosHiveContainer.getContainerIpAddress();
int port = HiveContainer.HIVE_METASTORE_PORT;
// Multiple HMS URIs, I put the new one first to test the new HMS URI first.
HIVE_METASTORE_URI = String.format("thrift://%s:1%d,thrift://%s:%d", ip, port, ip, port);
Copy link
Contributor

Choose a reason for hiding this comment

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

please use a new port parameter, 1%d looks too tricky

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed

@yuqi1129
Copy link
Contributor Author

yuqi1129 commented Aug 1, 2024

@mchades
Please help to take a look again, thanks.

Copy link
Contributor

@mchades mchades left a comment

Choose a reason for hiding this comment

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

LGTM.

@yuqi1129 yuqi1129 merged commit d3234fe into apache:main Aug 1, 2024
33 checks passed
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

Successfully merging this pull request may close these issues.

[Improvement] Support multiple metastores for Kerberos Hive catalog
2 participants