throws IOException {
try {
saslRpcClient = new SaslRpcClient(authMethod, token,
serverPrincipal);
return saslRpcClient.saslConnect(in2, out2);
<BUG>} catch (javax.security.sasl.SaslException je) {
if (authMethod == AuthMethod.KERBEROS &&
UserGroupInformation.isLoginKeytabBased()) {

UserGroupInformation.getCurrentUser().reloginFromKeytab();
try {
disposeSasl();</BUG>
saslRpcClient = new SaslRpcClient(authMethod, token,

throws IOException {
try {
saslRpcClient = new SaslRpcClient(authMethod, token,
