/** * For compatibility, if failed with regionserver credentials, try the master one */ @Override protected void login(UserProvider user, String host) throws IOException { try { super.login(user, host); } catch (IOException ie) { user.login("hbase.master.keytab.file", "hbase.master.kerberos.principal", host); } }
HConstants.ZK_CLIENT_KERBEROS_PRINCIPAL, hostName); login(userProvider, hostName);
/** * For compatibility, if failed with regionserver credentials, try the master one */ @Override protected void login(UserProvider user, String host) throws IOException { try { super.login(user, host); } catch (IOException ie) { user.login("hbase.master.keytab.file", "hbase.master.kerberos.principal", host); } }
HConstants.ZK_CLIENT_KERBEROS_PRINCIPAL, hostName); login(userProvider, hostName);