runKerberosLogin block should return false

This commit is contained in:
Prabhjyot Singh 2017-07-05 20:57:52 +05:30
parent 582372744a
commit a5a54d4667
2 changed files with 5 additions and 4 deletions

View file

@ -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() {

View file

@ -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() {