yuqi1129 commented on code in PR #8189:
URL: https://github.com/apache/gravitino/pull/8189#discussion_r2579403349


##########
iceberg/iceberg-common/src/main/java/org/apache/gravitino/iceberg/common/ClosableHiveCatalog.java:
##########
@@ -47,8 +67,32 @@ public void addResource(Closeable resource) {
     resources.add(resource);
   }
 
+  @Override
+  public void initialize(String inputName, Map<String, String> properties) {
+    super.initialize(inputName, properties);
+
+    AuthenticationConfig authenticationConfig = new 
AuthenticationConfig(properties);
+    if (authenticationConfig.isKerberosAuth()) {
+      this.kerberosClient = initKerberosClient();
+    }
+
+    try {
+      resetIcebergHiveClientPool();
+    } catch (Exception e) {
+      throw new RuntimeException("Failed to reset IcebergHiveClientPool", e);
+    }

Review Comment:
   `initKerberosClient` will throw an exception if it fails, so it's okay.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to