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

Hive proxy user doesn't work if interpreter name is not JDBC #1978

Closed
wants to merge 2 commits into from

Conversation

r-kamath
Copy link
Member

@r-kamath r-kamath commented Feb 6, 2017

What is this PR for?

Hive proxy user doesn't work if interpreter name is not JDBC

What type of PR is it?

Bug Fix

Todos

  • - Task

What is the Jira issue?

ZEPPELIN-2062

How should this be tested?

Create a new interpreter named "hive" and run a hive query in a Kerberos environment.

Screenshots (if appropriate)

Questions:

  • Does the licenses files need update? n/a
  • Is there breaking changes for older versions? n/a
  • Does this needs documentation? n/a

@prabhjyotsingh
Copy link
Contributor

Good catch! LGTM!

@@ -375,7 +375,7 @@ public Connection getConnection(String propertyKey, InterpreterContext interpret
if (user == null) {
connection = getConnectionFromPool(url, user, propertyKey, properties);
} else {
if ("hive".equalsIgnoreCase(propertyKey)) {
if (url.trim().indexOf("jdbc:hive") == 0) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should it do startsWith instead?

@r-kamath
Copy link
Member Author

r-kamath commented Feb 9, 2017

@felixcheung updated in 6d55d48

@prabhjyotsingh
Copy link
Contributor

Merging this to master and branch-0.7 if no more discussion.

@felixcheung
Copy link
Member

LGTM

@asfgit asfgit closed this in 5853dd2 Feb 13, 2017
asfgit pushed a commit that referenced this pull request Feb 13, 2017
### What is this PR for?
Hive proxy user doesn't work if interpreter name is not JDBC

### What type of PR is it?
Bug Fix

### Todos
* [ ] - Task

### What is the Jira issue?
[ZEPPELIN-2062](https://issues.apache.org/jira/browse/ZEPPELIN-2062)

### How should this be tested?
Create a new interpreter named "hive" and run a hive query in a Kerberos environment.

### Screenshots (if appropriate)

### Questions:
* Does the licenses files need update? n/a
* Is there breaking changes for older versions? n/a
* Does this needs documentation? n/a

Author: Renjith Kamath <renjith.kamath@gmail.com>

Closes #1978 from r-kamath/ZEPPELIN-2062 and squashes the following commits:

6d55d48 [Renjith Kamath] ZEPPELIN-2062 review fix
8c97c7b [Renjith Kamath] ZEPPELIN-2062 Hive proxy user doesn't work if interpreter name is not JDBC

(cherry picked from commit 5853dd2)
Signed-off-by: Prabhjyot Singh <prabhjyotsingh@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants