FANNG1 commented on code in PR #4395:
URL: https://github.com/apache/gravitino/pull/4395#discussion_r1716589744
##########
iceberg/iceberg-common/src/main/java/org/apache/gravitino/iceberg/common/utils/IcebergCatalogUtil.java:
##########
@@ -99,8 +99,11 @@ private static KerberosClient initKerberosAndReturnClient(
Map<String, String> properties, Configuration conf) {
try {
KerberosClient kerberosClient = new KerberosClient(properties, conf);
- File keytabFile =
-
kerberosClient.saveKeyTabFileFromUri(Long.valueOf(properties.get("catalog_uuid")));
+
+ // For Iceberg rest server, we haven't set the catalog_uuid, so we set
it to 0 as there is
+ // only one catalog in the rest server, so it's okay to set it to 0.
+ String catalogUUID = properties.getOrDefault("catalog_uuid", "0");
Review Comment:
There was no properties to identify a catalog in IcebergConfig, we could
add it when constructing IcebergTableOps like, we could do it in another PR.
```java
IcebergTableOps(IcebergConfig icebergConfig, String catalogIdentifier)
```
--
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]