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/b237373b Tree: http://git-wip-us.apache.org/repos/asf/sqoop/tree/b237373b Diff: http://git-wip-us.apache.org/repos/asf/sqoop/diff/b237373b Branch: refs/heads/cdh5-1.99.4 Commit: b237373b4c516c2b00c00830b9464ab0a0327831 Parents: 81e75fb Author: Jarek Jarcec Cecho <[email protected]> Authored: Tue Nov 18 09:14:40 2014 -0800 Committer: Abraham Elmahrek <[email protected]> Committed: Wed Nov 19 13:52:03 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/b237373b/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 + "]");
