mirror of
https://github.com/apache/zeppelin
synced 2026-05-24 09:38:26 +00:00
runKerberosLogin block should return false
This commit is contained in:
parent
582372744a
commit
a5a54d4667
2 changed files with 5 additions and 4 deletions
|
|
@ -153,14 +153,15 @@ public class JDBCInterpreter extends KerberosInterpreter {
|
|||
try {
|
||||
if (UserGroupInformation.isLoginKeytabBased()) {
|
||||
UserGroupInformation.getLoginUser().reloginFromKeytab();
|
||||
return true;
|
||||
} else if (UserGroupInformation.isLoginTicketBased()) {
|
||||
UserGroupInformation.getLoginUser().reloginFromTicketCache();
|
||||
return true;
|
||||
}
|
||||
} catch (Exception e) {
|
||||
logger.error("Unable to run kinit for zeppelin", e);
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
public HashMap<String, Properties> getPropertiesMap() {
|
||||
|
|
|
|||
|
|
@ -161,11 +161,11 @@ public class ShellInterpreter extends KerberosInterpreter {
|
|||
protected boolean runKerberosLogin() {
|
||||
try {
|
||||
createSecureConfiguration();
|
||||
return true;
|
||||
} catch (Exception e) {
|
||||
LOGGER.error("Unable to run kinit for zeppelin", e);
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
public void createSecureConfiguration() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue