sqoop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jar...@apache.org
Subject sqoop git commit: SQOOP-1747: Sqoop2: Provide more information for Kerberos initialization exception
Date Tue, 18 Nov 2014 17:15:31 GMT
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 <jarcec@apache.org>
Authored: Tue Nov 18 09:14:40 2014 -0800
Committer: Jarek Jarcec Cecho <jarcec@apache.org>
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 + "]");


Mime
View raw message