[fix](kerberos) fix kerberos ugi login method (#30766)
This commit is contained in:
@ -807,6 +807,7 @@ public class HiveMetaStoreClientHelper {
|
||||
UserGroupInformation ugi = getUserGroupInformation(conf);
|
||||
try {
|
||||
if (ugi != null) {
|
||||
ugi.checkTGTAndReloginFromKeytab();
|
||||
return ugi.doAs(action);
|
||||
} else {
|
||||
return action.run();
|
||||
|
||||
Reference in New Issue
Block a user