mirror of
https://github.com/apache/sqoop.git
synced 2025-05-09 01:31:58 +08:00
SQOOP-1747: Sqoop2: Provide more information for Kerberos initialization exception
(Abraham Elmahrek via Jarek Jarcec Cecho)
This commit is contained in:
parent
59ffd88025
commit
e2947450b2
@ -79,7 +79,7 @@ public void secureLogin() {
|
||||
String hostPrincipal = SecurityUtil.getServerPrincipal(principal, "0.0.0.0");
|
||||
UserGroupInformation.loginUserFromKeytab(hostPrincipal, keytab);
|
||||
} catch (IOException ex) {
|
||||
throw new SqoopException(AuthenticationError.AUTH_0003);
|
||||
throw new SqoopException(AuthenticationError.AUTH_0003, ex);
|
||||
}
|
||||
LOG.info("Using Kerberos authentication, principal ["
|
||||
+ principal + "] keytab [" + keytab + "]");
|
||||
|
Loading…
Reference in New Issue
Block a user