This is an automated email from the ASF dual-hosted git repository.

yiguolei pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/master by this push:
     new 15a97a3fb2e [fix](kerberos) fix kerberos ugi login method (#30766)
15a97a3fb2e is described below

commit 15a97a3fb2e2f8efecf98cd3a443e7852bb1c25f
Author: slothever <[email protected]>
AuthorDate: Tue Feb 6 08:33:25 2024 +0800

    [fix](kerberos) fix kerberos ugi login method (#30766)
---
 .../hudi-scanner/src/main/java/org/apache/doris/hudi/Utils.java          | 1 +
 .../main/java/org/apache/doris/catalog/HiveMetaStoreClientHelper.java    | 1 +
 2 files changed, 2 insertions(+)

diff --git 
a/fe/be-java-extensions/hudi-scanner/src/main/java/org/apache/doris/hudi/Utils.java
 
b/fe/be-java-extensions/hudi-scanner/src/main/java/org/apache/doris/hudi/Utils.java
index 9dcfacebb8c..4e8d670dac2 100644
--- 
a/fe/be-java-extensions/hudi-scanner/src/main/java/org/apache/doris/hudi/Utils.java
+++ 
b/fe/be-java-extensions/hudi-scanner/src/main/java/org/apache/doris/hudi/Utils.java
@@ -118,6 +118,7 @@ public class Utils {
         HoodieTableMetaClient metaClient;
         if (ugi != null) {
             try {
+                ugi.checkTGTAndReloginFromKeytab();
                 metaClient = ugi.doAs(
                         (PrivilegedExceptionAction<HoodieTableMetaClient>) () 
-> HoodieTableMetaClient.builder()
                                 .setConf(conf).setBasePath(basePath).build());
diff --git 
a/fe/fe-core/src/main/java/org/apache/doris/catalog/HiveMetaStoreClientHelper.java
 
b/fe/fe-core/src/main/java/org/apache/doris/catalog/HiveMetaStoreClientHelper.java
index 7d0419fcbf9..6273b78b66b 100644
--- 
a/fe/fe-core/src/main/java/org/apache/doris/catalog/HiveMetaStoreClientHelper.java
+++ 
b/fe/fe-core/src/main/java/org/apache/doris/catalog/HiveMetaStoreClientHelper.java
@@ -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();


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to