HBASE-15854 Log the cause of SASL connection failures (Robert Yokota)

This commit is contained in:
Andrew Purtell 2016-05-26 14:16:20 -07:00
parent 43d1a999fe
commit fdaf3be84f
2 changed files with 2 additions and 2 deletions

View File

@ -661,7 +661,7 @@ public class AsyncRpcChannelImpl implements AsyncRpcChannel {
} else { } else {
String msg = "Couldn't setup connection for " String msg = "Couldn't setup connection for "
+ UserGroupInformation.getLoginUser().getUserName() + " to " + serverPrincipal; + UserGroupInformation.getLoginUser().getUserName() + " to " + serverPrincipal;
LOG.warn(msg); LOG.warn(msg, ex);
throw (IOException) new IOException(msg).initCause(ex); throw (IOException) new IOException(msg).initCause(ex);
} }
} else { } else {

View File

@ -672,7 +672,7 @@ public class RpcClientImpl extends AbstractRpcClient {
String msg = "Couldn't setup connection for " + String msg = "Couldn't setup connection for " +
UserGroupInformation.getLoginUser().getUserName() + UserGroupInformation.getLoginUser().getUserName() +
" to " + serverPrincipal; " to " + serverPrincipal;
LOG.warn(msg); LOG.warn(msg, ex);
throw (IOException) new IOException(msg).initCause(ex); throw (IOException) new IOException(msg).initCause(ex);
} }
} else { } else {