[fix](kerberos) fix kerberos ugi login method (#30766)

This commit is contained in:
slothever
2024-02-06 08:33:25 +08:00
committed by yiguolei
parent 8e147f4c93
commit bc2e8ac8f9
2 changed files with 2 additions and 0 deletions

View File

@ -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();