You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: extensions/federation/hive/src/main/java/org/apache/polaris/extensions/federation/hive/HiveFederatedCatalogFactory.java
+12Lines changed: 12 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -54,6 +54,18 @@ public Catalog createCatalog(
54
54
// Unlike Hadoop, HiveCatalog does not require us to create a Configuration object, the iceberg
55
55
// rest library find the default configuration by reading hive-site.xml in the classpath
56
56
// (including HADOOP_CONF_DIR classpath).
57
+
58
+
// TODO: In the future, we could support multiple HiveCatalog instances based on polaris/catalog
59
+
// properties.
60
+
// A brief set of setps involved (and the options):
61
+
// 1. Create a configuration without default properties.
62
+
// `Configuration conf = new Configuration(boolean loadDefaults=false);`
63
+
// 2a. Specify the hive-site.xml file path in the configuration.
64
+
// `conf.addResource(new Path(hiveSiteXmlPath));`
65
+
// 2b. Specify individual properties in the configuration.
66
+
// `conf.set(property, value);`
67
+
// In this case, Polaris could support federating to multiple LDAP based Hive metastores.
68
+
// Kerberos is still not suitable because it ties a single identities to the server.
0 commit comments