Skip to content

Eliminate HiveServer2 integration's dependency on Hive Metastore Client#36114

Merged
RaigorJiang merged 3 commits into
apache:masterfrom
linghengqian:hive-hadoop
Jul 30, 2025
Merged

Eliminate HiveServer2 integration's dependency on Hive Metastore Client#36114
RaigorJiang merged 3 commits into
apache:masterfrom
linghengqian:hive-hadoop

Conversation

@linghengqian

@linghengqian linghengqian commented Jul 29, 2025

Copy link
Copy Markdown
Member

For #29052 .

Changes proposed in this pull request:

  • Eliminate HiveServer2 integration's dependency on Hive Metastore Client.
  • When connected to HiveServer2, executing SQL on HiveServer2 to obtain the URL of the Hive Metastore Server and then connecting to the Hive Metastore Server through the Hive Metastore Client sounds very strange. This is because the Hive Metastore Server can be deployed independently, which means that the Hive Metastore Server thrift port may not be accessible. HiveServer2 itself has the INFORMATION_SCHEMA database for querying metadata. Moreover, the Java API of the Hive Metastore Client is not stable.
  • I have updated the method for creating INFORMATION_SCHEMA schema within HiveServer2 on the Hive side via HIVE-28437: Add documentation for initializing the system schemas for HiveServer2 for Quickstart with Docker hive-site#40 .
  • Remove GraalVM Reachability Metadata for org.apache.hive:hive-jdbc:4.0.1.
  • To avoid the time overhead of dynamically building a Linux Container in unit testing, I created a Hive Container ghcr.io/linghengqian/hive:4.0.1-all-in-one that includes third-party dependencies at https://github.com/linghengqian/hive-server2-jdbc-driver/tree/master/tinycircus . It seems that the Hive community is not convenient for creating a container with the Oracle JDBC driver.
  • Fix the inconsistency between Chinese and English translations of HiveServer2 integration documentation.

Before committing this PR, I'm sure that I have checked the following options:

  • My code follows the code of conduct of this project.
  • I have self-reviewed the commit code.
  • I have (or in comment I request) added corresponding labels for the pull request.
  • I have passed maven check locally : ./mvnw clean install -B -T1C -Dmaven.javadoc.skip -Dmaven.jacoco.skip -e.
  • I have made corresponding changes to the documentation.
  • I have added corresponding unit tests for my changes.
  • I have updated the Release Notes of the current development version. For more details, see Update Release Note

@linghengqian linghengqian marked this pull request as ready for review July 30, 2025 00:22
@linghengqian linghengqian added this to the 5.5.3 milestone Jul 30, 2025
@RaigorJiang RaigorJiang merged commit cb92feb into apache:master Jul 30, 2025
150 checks passed
@linghengqian linghengqian deleted the hive-hadoop branch July 30, 2025 02:58
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.

2 participants