-
Notifications
You must be signed in to change notification settings - Fork 919
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
Cut out Hive JDBC and Hive Service deps in beeline module #6153
Conversation
@@ -40,7 +41,7 @@ | |||
* <client-principal> | |||
*/ | |||
public class ProxyAuthTest { | |||
private static final String driverName = "org.apache.hive.jdbc.HiveDriver"; | |||
private static final String driverName = "org.apache.kyuubi.jdbc.KyuubiHiveDriver"; |
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 still support org.apache.hive.jdbc.HiveDriver
right ?
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.
I think we have no such guarantee, the internally used JDBC driver is not user-faced stuff, we only need to ensure that user could smoothly migrate from Hive Beeline to Kyuubi Beeline without changing the JDBC URL.
lgtm if tests pass |
Thanks, merged to master |
…ne module # 🔍 Description ## Issue References 🔗 This is the next step of apache#6146, cutting out most Hive deps(excepting `hive-common`) and recovering the skipped tests via minor code tunning. ## Describe Your Solution 🔧 - Drop `hive-jdbc`, `hive-service`, `hive-service-rpc` deps in the beeline module. - Migrate from `commons-lang` to `commons-lang3` in the beeline module. - Recover the skipped test `TestClientCommandHookFactory#connectHook` ## Types of changes 🔖 - [x] 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 🧪 Pass GA, and manually test to ensure the following error has gone. Before ``` roothadoop-master1:/opt/kyuubi# bin/beeline --version Warn: Not find kyuubi environment file /etc/kyuubi/conf/kyuubi-env.sh, using default ones... java.lang.NoClassDefFoundError: org/apache/curator/RetryPolicy ``` After ``` roothadoop-master1:/opt/kyuubi# bin/beeline --version Connecting to jdbc:hive2://hadoop-master1.orb.local:10000/default;password=hive;user=hive Connected to: Apache Hive (version 2.3.9) Driver: Kyuubi Project Hive JDBC Client (version 1.9.0-SNAPSHOT) Beeline version 1.9.0-SNAPSHOT by Apache Kyuubi 0: jdbc:hive2://hadoop-master1.orb.local:1000> ``` --- # 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#6153 from pan3793/beeline-2. Closes apache#6153 8cd52e5 [Cheng Pan] notice d03c729 [Cheng Pan] minor 5d16bf4 [Cheng Pan] beeline test pass Authored-by: Cheng Pan <[email protected]> Signed-off-by: Cheng Pan <[email protected]>
🔍 Description
Issue References 🔗
This is the next step of #6146, cutting out most Hive deps(excepting
hive-common
) and recovering the skipped tests via minor code tunning.Describe Your Solution 🔧
hive-jdbc
,hive-service
,hive-service-rpc
deps in the beeline module.commons-lang
tocommons-lang3
in the beeline module.TestClientCommandHookFactory#connectHook
Types of changes 🔖
Test Plan 🧪
Pass GA, and manually test to ensure the following error has gone.
Before
After
Checklist 📝
Be nice. Be informative.