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

Backport HIVE-20583 - Use canonical hostname only for kerberos auth in HiveConnection #3355

Closed
wants to merge 2 commits into from

Conversation

pan3793
Copy link
Member

@pan3793 pan3793 commented Aug 26, 2022

Why are the changes needed?

Fix #3352

HIVE-17218: Canonical-ize hostnames for Hive metastore, and HS2 servers

This may have the problem mentioned by JIRA

HIVE-20583: Use canonical hostname only for kerberos auth in HiveConnection

How was this patch tested?

  • Add some test cases that check the changes thoroughly including negative and positive cases if possible

  • Add screenshots for manual tests if appropriate

  • Run test locally before make a pull request

@pan3793 pan3793 self-assigned this Aug 26, 2022
@pan3793 pan3793 added this to the v1.6.0 milestone Aug 26, 2022
@pan3793 pan3793 added the kind:bug This is a clearly a bug label Aug 26, 2022
Copy link
Member

@SteNicholas SteNicholas left a comment

Choose a reason for hiding this comment

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

LGTM.

@codecov-commenter
Copy link

Codecov Report

Merging #3355 (6e2ffa4) into master (5bb0406) will decrease coverage by 0.02%.
The diff coverage is 0.00%.

@@             Coverage Diff              @@
##             master    #3355      +/-   ##
============================================
- Coverage     51.48%   51.46%   -0.03%     
  Complexity       13       13              
============================================
  Files           475      475              
  Lines         26481    26486       +5     
  Branches       3695     3697       +2     
============================================
- Hits          13635    13630       -5     
- Misses        11517    11528      +11     
+ Partials       1329     1328       -1     
Impacted Files Coverage Δ
.../org/apache/kyuubi/jdbc/hive/KyuubiConnection.java 4.13% <0.00%> (-0.04%) ⬇️
...client/exception/RetryableKyuubiRestException.java 0.00% <0.00%> (-100.00%) ⬇️
.../org/apache/kyuubi/client/RetryableRestClient.java 48.78% <0.00%> (-24.40%) ⬇️
...main/java/org/apache/kyuubi/client/RestClient.java 82.75% <0.00%> (-3.45%) ⬇️
...ache/kyuubi/operation/KyuubiOperationManager.scala 80.82% <0.00%> (-1.37%) ⬇️
...ain/scala/org/apache/kyuubi/engine/EngineRef.scala 74.07% <0.00%> (-0.93%) ⬇️
...n/scala/org/apache/kyuubi/engine/ProcBuilder.scala 83.22% <0.00%> (+0.62%) ⬆️
...yuubi/server/metadata/jdbc/JDBCMetadataStore.scala 89.96% <0.00%> (+0.69%) ⬆️
...ache/kyuubi/server/mysql/MySQLGenericPackets.scala 78.72% <0.00%> (+2.12%) ⬆️
...ache/kyuubi/server/mysql/MySQLCommandHandler.scala 79.54% <0.00%> (+3.40%) ⬆️
... and 1 more

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@pan3793
Copy link
Member Author

pan3793 commented Aug 26, 2022

Thanks, merging to master/1.6

@pan3793 pan3793 closed this in 1163a76 Aug 26, 2022
pan3793 added a commit that referenced this pull request Aug 26, 2022
…kerberos auth in HiveConnection

### _Why are the changes needed?_

Fix #3352

[HIVE-17218](https://issues.apache.org/jira/browse/HIVE-17218): Canonical-ize hostnames for Hive metastore, and HS2 servers

This may have the problem mentioned by JIRA

[HIVE-20583](https://issues.apache.org/jira/browse/HIVE-20583): Use canonical hostname only for kerberos auth in HiveConnection

### _How was this patch tested?_
- [ ] Add some test cases that check the changes thoroughly including negative and positive cases if possible

- [ ] Add screenshots for manual tests if appropriate

- [x] [Run test](https://kyuubi.apache.org/docs/latest/develop_tools/testing.html#running-tests) locally before make a pull request

Closes #3355 from pan3793/HIVE-20583.

Closes #3355

6e2ffa4 [Cheng Pan] Fix NPE
f09b8e6 [Cheng Pan] Backport HIVE-20583

Authored-by: Cheng Pan <chengpan@apache.org>
Signed-off-by: Cheng Pan <chengpan@apache.org>
(cherry picked from commit 1163a76)
Signed-off-by: Cheng Pan <chengpan@apache.org>
@pan3793 pan3793 deleted the HIVE-20583 branch August 28, 2022 12:26
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.

[Bug] Backport HIVE-20583: Use canonical hostname only for kerberos auth in HiveConnection
4 participants