Repository: sqoop Updated Branches: refs/heads/sqoop2 59ffd8802 -> e2947450b
SQOOP-1747: Sqoop2: Provide more information for Kerberos initialization exception (Abraham Elmahrek via Jarek Jarcec Cecho) Project: http://git-wip-us.apache.org/repos/asf/sqoop/repo Commit: http://git-wip-us.apache.org/repos/asf/sqoop/commit/e2947450 Tree: http://git-wip-us.apache.org/repos/asf/sqoop/tree/e2947450 Diff: http://git-wip-us.apache.org/repos/asf/sqoop/diff/e2947450 Branch: refs/heads/sqoop2 Commit: e2947450b25dcc722b06e8d4e8d7388c73be44df Parents: 59ffd88 Author: Jarek Jarcec Cecho <[email protected]> Authored: Tue Nov 18 09:14:40 2014 -0800 Committer: Jarek Jarcec Cecho <[email protected]> Committed: Tue Nov 18 09:14:40 2014 -0800 ---------------------------------------------------------------------- .../org/apache/sqoop/security/KerberosAuthenticationHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/sqoop/blob/e2947450/security/src/main/java/org/apache/sqoop/security/KerberosAuthenticationHandler.java ---------------------------------------------------------------------- diff --git a/security/src/main/java/org/apache/sqoop/security/KerberosAuthenticationHandler.java b/security/src/main/java/org/apache/sqoop/security/KerberosAuthenticationHandler.java index 9e2a0ca..57531b8 100644 --- a/security/src/main/java/org/apache/sqoop/security/KerberosAuthenticationHandler.java +++ b/security/src/main/java/org/apache/sqoop/security/KerberosAuthenticationHandler.java @@ -79,7 +79,7 @@ public class KerberosAuthenticationHandler extends AuthenticationHandler { 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 + "]");
