5
0
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:
Jarek Jarcec Cecho 2014-11-18 09:14:40 -08:00
parent 59ffd88025
commit e2947450b2

View File

@ -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 + "]");