mirror of
https://github.com/apache/zeppelin
synced 2026-05-24 09:38:26 +00:00
Fixed NPE when getting hive.proxy.user property
This commit is contained in:
parent
433eefb613
commit
1f7f685a6a
1 changed files with 2 additions and 1 deletions
|
|
@ -374,7 +374,8 @@ public class JDBCInterpreter extends Interpreter {
|
|||
if (lastIndexOfUrl == -1) {
|
||||
lastIndexOfUrl = connectionUrl.length();
|
||||
}
|
||||
if (!property.getProperty("hive.proxy.user").equals("false")){
|
||||
boolean hasProxyUser = property.containsKey("hive.proxy.user");
|
||||
if (!hasProxyUser || !property.getProperty("hive.proxy.user").equals("false")){
|
||||
logger.debug("Using hive proxy user");
|
||||
connectionUrl.insert(lastIndexOfUrl, ";hive.server2.proxy.user=" + user + ";");
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue