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 9e2a0ca7..57531b8a 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 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 + "]");