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

HIVE-27675: Support keystore/truststore types for hive/zookeeper i… #4691

Merged
merged 1 commit into from
Sep 15, 2023

Conversation

nrg4878
Copy link
Contributor

@nrg4878 nrg4878 commented Sep 12, 2023

…ntegration (Naveen Gangam)

What changes were proposed in this pull request?

We have various points in the hive codebase that communicate with zookeeper service.
Apache Hive JDBC Driver fetches the HS2 URLs for service discovery.
Hive Server2 uses ZK to register itself for service discovery, table locking, ZK TokenStore etc.
Hive Metastore also uses ZK to register itself for service discovery, ZK Tokenstore

If Zookeeper is TLS enabled with a different keystore/truststore type, we need to be able to specify this type when establishing this connection. Otherwise, it defaults to JKS which may not be the case all the time.

Why are the changes needed?

To be able to support service discovery (and other features) that use zookeeper in hive, we have to allow for a keystore/truststore type to be specified in the config.

Does this PR introduce any user-facing change?

No, its backward compatible. But only in cases where non-JKS storetypes are used, we will need additional configuration either in the JDBC URL or in the hive-site.xml for HS2/HMS services.

Is the change a dependency upgrade?

No

How was this patch tested?

UTs

@nrg4878
Copy link
Contributor Author

nrg4878 commented Sep 12, 2023

@henrib @VenuReddy2103 Can you please review this change? Thank you

@sonarcloud
Copy link

sonarcloud bot commented Sep 14, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

warning The version of Java (11.0.8) you have used to run this analysis is deprecated and we will stop accepting it soon. Please update to at least Java 17.
Read more here

@nrg4878 nrg4878 merged commit 59570d6 into apache:master Sep 15, 2023
4 checks passed
tarak271 pushed a commit to tarak271/hive-1 that referenced this pull request Dec 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants