Repository navigation
[LIVY-1093][THRIFT] Upgrade Hive to 4.0.1 for thriftserver - #568
Open
nileshrathi345 wants to merge 1 commit into
Open
nileshrathi345 wants to merge 1 commit into
nileshrathi345 wants to merge 1 commit into
Conversation
Contributor
Author
Bump hive.version from 3.0.0 to 4.0.1 so the Thrift server aligns with libthrift 0.25.0 (LIVY-1091). Hive 3.0.0 was built for libthrift 0.9.3; Hive 4.0.1 targets libthrift 0.16.0 and Java 8. - Adapt to Hive 4 APIs: commons-lang3, PasswdAuthenticationProvider.Authenticate, UploadData/DownloadData stubs with placeholder operationHandle. - hive-jdbc:standalone for beeline; hive-common/hive-serde at test scope for IT. - Test-only THttpClient (HttpClient 4.x); TLS and protocol IT coverage.
nileshrathi345
force-pushed
the
LIVY-1093
branch
from
October 19, 2026 13:26
d80cced to
ad70358
Compare
Contributor
|
Thanks for your PR @nileshrathi345! Since this seems to be closely related to #567, I wonder if it would make sense to merge the two commits into a single PR? Please let me know your thoughts on this. |
Contributor
Author
Thanks @gyogal — agreed. I'll add the #568 commit(s) into #567 and close this PR once #567 is updated. |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes were proposed in this pull request?
This PR bumps
hive.versionfrom 3.0.0 to 4.0.1 for the Thrift server and related modules. It builds on LIVY-1091 (libthrift 0.25.0 for CVE-2026-43869). Hive 3.0.0 was compiled against libthrift 0.9.3; Hive 4.0.1 uses libthrift 0.16.0 and Java 8, which fits Livy's-Pspark3/ JDK 8 CI leg while Livy continues to run libthrift 0.25 on the server classpath.commons-lang3usage,PasswdAuthenticationProvider.Authenticate(capital A in 4.0.1), and stubs forUploadData/DownloadData. Response structs requireoperationHandle; a placeholder handle is set with the unsupported status so Thrift serialization succeeds and the client connection is not dropped.hive-jdbc:standalonefor the beeline client module. For thriftserver and integration-test, the thinhive-jdbcjar is supplemented with test-scopedhive-commonandhive-serde(Hive 4.x does not pull these via Maven transitives). Do not usestandaloneon the server IT classpath—it relocates libthrift and conflicts with compile-scopedhive-service-rpc.THttpClientwith the HttpClient 4.x constructor expected by Hive JDBC when the IT JVM loadsorg.apache.thrift. The production HTTP server usesThriftHttpServlet, not libthriftTHttpClient.JIRA: https://issues.apache.org/jira/browse/LIVY-1093
Related: https://issues.apache.org/jira/browse/LIVY-1091 (libthrift 0.25.0)
How was this patch tested?
livy-thriftserverunit and integration tests, including new coverage for TLS (binary and HTTP),UploadData/DownloadData, max message size, andLibthriftHttpCompatSuite. .mvn -Pthriftserver -Pspark3 -Pscala-2.12 -B verifyWas this patch authored or co-authored using generative AI tooling?
Co-authored by: Cursor AI (Claude Opus 4.8)