HBASE-15854 Log the cause of SASL connection failures (Robert Yokota)
This commit is contained in:
parent
43d1a999fe
commit
fdaf3be84f
|
@ -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 {
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue