-
Notifications
You must be signed in to change notification settings - Fork 935
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
Fork beeline module from Apache Hive 3.1.3 #6109
Conversation
Before completing the work, I'd like to collect feedback from the community first. |
I'm not a fan of fork instead of upstream first. I have no comments. Leave it to others to decide. |
The change is almost done, I manually tested some cases locally, and everything went well. This is the last part to cut Hive deps out from Kyuubi server and client modules. I'm going to split it to gain a clear changelog history. |
e9161d7
to
87f31af
Compare
why fork beeline module can resolve CVE, does those transitive dependencies go away ? |
Fork and do minor changes can cut out all Hive's vulnerable deps. To gain a clear git history, those minor changes are planed in follow-up PRs. |
@ulysses-you the whole proposal is listed under #6146 |
+1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we can go back to upstream once Hive community become active on beeline module
Thanks, merged to master |
# 🔍 Description ## Issue References 🔗 This is the first step of apache#6146, to gain a clear commit history, this PR just simply copied the `hive-beeline` module from Apache Hive 3.1.3, with minimal change to pass the tests and manually test basic functionalities, following PRs are going to remove other Hive deps gradually. ## Describe Your Solution 🔧 - Copy source code and test case from Apache Hive 3.1.3 - Drop `org.apache.hive:hive-beeline:3.1.3` - Backport HIVE-21584 to support JDK 9+ - Drop `HiveCli`, `HiveSchemaTool` and `BeelineInPlaceUpdateStream`, and the corresponding test cases - Temporary ignore(will fix later) `TestClientCommandHookFactory#testConnectHook` because of error `NoClassDefFound org/apache/curator/RetryPolicy` - Tune testing code to pass UT ## Types of changes :bookmark: - [ ] Bugfix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to change) ## Test Plan 🧪 Minimal changes to pass the unit tests. --- # Checklist 📝 - [x] This patch was not authored or co-authored using [Generative Tooling](https://www.apache.org/legal/generative-tooling.html) **Be nice. Be informative.** Closes apache#6109 from pan3793/fork-beeline. Closes apache#6109 885f9fe [Cheng Pan] NOTICE a2efa1c [Cheng Pan] fix 5bb1cc9 [Cheng Pan] Copy from Apache Hive 3.1.3 Authored-by: Cheng Pan <[email protected]> Signed-off-by: Cheng Pan <[email protected]>
# 🔍 Description ## Issue References 🔗 This is the first step of apache#6146, to gain a clear commit history, this PR just simply copied the `hive-beeline` module from Apache Hive 3.1.3, with minimal change to pass the tests and manually test basic functionalities, following PRs are going to remove other Hive deps gradually. ## Describe Your Solution 🔧 - Copy source code and test case from Apache Hive 3.1.3 - Drop `org.apache.hive:hive-beeline:3.1.3` - Backport HIVE-21584 to support JDK 9+ - Drop `HiveCli`, `HiveSchemaTool` and `BeelineInPlaceUpdateStream`, and the corresponding test cases - Temporary ignore(will fix later) `TestClientCommandHookFactory#testConnectHook` because of error `NoClassDefFound org/apache/curator/RetryPolicy` - Tune testing code to pass UT ## Types of changes :bookmark: - [ ] Bugfix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to change) ## Test Plan 🧪 Minimal changes to pass the unit tests. --- # Checklist 📝 - [x] This patch was not authored or co-authored using [Generative Tooling](https://www.apache.org/legal/generative-tooling.html) **Be nice. Be informative.** Closes apache#6109 from pan3793/fork-beeline. Closes apache#6109 885f9fe [Cheng Pan] NOTICE a2efa1c [Cheng Pan] fix 5bb1cc9 [Cheng Pan] Copy from Apache Hive 3.1.3 Authored-by: Cheng Pan <[email protected]> Signed-off-by: Cheng Pan <[email protected]>
🔍 Description
Issue References 🔗
This is the first step of #6146, to gain a clear commit history, this PR just simply copied the
hive-beeline
module from Apache Hive 3.1.3, with minimal change to pass the tests and manually test basic functionalities, following PRs are going to remove other Hive deps gradually.Describe Your Solution 🔧
org.apache.hive:hive-beeline:3.1.3
HiveCli
,HiveSchemaTool
andBeelineInPlaceUpdateStream
, and the corresponding test casesTestClientCommandHookFactory#testConnectHook
because of errorNoClassDefFound org/apache/curator/RetryPolicy
Types of changes 🔖
Test Plan 🧪
Minimal changes to pass the unit tests.
Checklist 📝
Be nice. Be informative.