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

Include hive-service-rpc in Hive engine jar #5777

Closed
wants to merge 1 commit into from

Conversation

zhouyifan279
Copy link
Contributor

@zhouyifan279 zhouyifan279 commented Nov 27, 2023

🔍 Description

Issue References 🔗

Exception was thrown when execute SQL on HiveSQLEngine when HIVE_HOME set to Hive 2.1.1-cdh6.3.2.
image

Describe Your Solution 🔧

hive-service-rpc-2.1.1-cdh6.3.2.jar is not compatible with Kyuubi Server's hive-service-rpc.
We should use Kyuubi Server's hive-service-rpc at HiveSQLEngine side.

Types of changes 🔖

  • 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 🧪

Behavior Without This Pull Request ⚰️

Exception was thrown
image

Behavior With This Pull Request 🎉

SQL execute successfully
image

Related Unit Tests


Checklists

📝 Author Self Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • This patch was not authored or co-authored using Generative Tooling

📝 Committer Pre-Merge Checklist

  • Pull request title is okay.
  • No license issues.
  • Milestone correctly set?
  • Test coverage is ok
  • Assignees are selected.
  • Minimum number of approvals
  • No changes are requested

Be nice. Be informative.

@pan3793 pan3793 changed the title Include org.apache.hive:hive-service-rpc in HiveSQLEngine jar Include hive-service-rpc in Hive engine jar Nov 27, 2023
@pan3793
Copy link
Member

pan3793 commented Nov 27, 2023

Though it may introduce class conflict issues, but such a workaround definitely makes Hive engine work well with Hive 2.1, I think we can merge it and explore long-term solutions in the future

@pan3793 pan3793 added this to the v1.8.1 milestone Nov 27, 2023
@pan3793 pan3793 closed this in 65ba3b1 Nov 27, 2023
pan3793 pushed a commit that referenced this pull request Nov 27, 2023
# 🔍 Description
## Issue References 🔗

Exception was thrown when execute SQL on HiveSQLEngine when HIVE_HOME set to Hive 2.1.1-cdh6.3.2.
![image](https://github.com/apache/kyuubi/assets/88070094/79c397f5-8bc2-4f40-b617-94cbf7bbf86f)

## Describe Your Solution 🔧
hive-service-rpc-2.1.1-cdh6.3.2.jar is not compatible with Kyuubi Server's hive-service-rpc.
We should use Kyuubi Server's hive-service-rpc at HiveSQLEngine side.

## 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 🧪

#### Behavior Without This Pull Request ⚰️

Exception was thrown
![image](https://github.com/apache/kyuubi/assets/88070094/79c397f5-8bc2-4f40-b617-94cbf7bbf86f)

#### Behavior With This Pull Request 🎉
SQL execute successfully
<img width="1545" alt="image" src="https://github.com/apache/kyuubi/assets/88070094/8bb7cfa0-0af0-42cf-acf5-40cff39efd1f">

#### Related Unit Tests

---

# Checklists
## 📝 Author Self Checklist

- [x] My code follows the [style guidelines](https://kyuubi.readthedocs.io/en/master/contributing/code/style.html) of this project
- [x] I have performed a self-review
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [ ] I have added tests that prove my fix is effective or that my feature works
- [ ] New and existing unit tests pass locally with my changes
- [x] This patch was not authored or co-authored using [Generative Tooling](https://www.apache.org/legal/generative-tooling.html)

## 📝 Committer Pre-Merge Checklist

- [x] Pull request title is okay.
- [x] No license issues.
- [x] Milestone correctly set?
- [ ] Test coverage is ok
- [x] Assignees are selected.
- [x] Minimum number of approvals
- [x] No changes are requested

**Be nice. Be informative.**

Closes #5777 from zhouyifan279/hive-sql-engine.

Closes #5777

c55903a [zhouyifan279] Include org.apache.hive:hive-service-rpc in HiveSQLEngine jar

Authored-by: zhouyifan279 <[email protected]>
Signed-off-by: Cheng Pan <[email protected]>
(cherry picked from commit 65ba3b1)
Signed-off-by: Cheng Pan <[email protected]>
@pan3793
Copy link
Member

pan3793 commented Nov 27, 2023

Thanks, merged to master/1.8

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