mirror of
https://github.com/apache/zeppelin
synced 2026-05-24 09:38:26 +00:00
Fixed last NPE
This commit is contained in:
parent
1f7f685a6a
commit
a39d11c351
1 changed files with 3 additions and 6 deletions
|
|
@ -383,14 +383,11 @@ public class JDBCInterpreter extends Interpreter {
|
|||
user, propertyKey, properties);
|
||||
} else {
|
||||
UserGroupInformation ugi = null;
|
||||
|
||||
try {
|
||||
ugi = property.getProperty("hive.proxy.user").equals("false") ?
|
||||
UserGroupInformation.getCurrentUser() :
|
||||
UserGroupInformation.createProxyUser(
|
||||
user, UserGroupInformation.getCurrentUser());
|
||||
ugi = UserGroupInformation.createProxyUser(
|
||||
user, UserGroupInformation.getCurrentUser());
|
||||
} catch (Exception e) {
|
||||
logger.error("Error in getCurrentUser or createProxyUser", e);
|
||||
logger.error("Error in getCurrentUser", e);
|
||||
StringBuilder stringBuilder = new StringBuilder();
|
||||
stringBuilder.append(e.getMessage()).append("\n");
|
||||
stringBuilder.append(e.getCause());
|
||||
|
|
|
|||
Loading…
Reference in a new issue