Skip to content

Commit 4c1b518

Browse files
authored
HIVE-29676: Add support for Multi Tenancy in Kubernetes Operator (apache#6557)
1 parent 1fd7161 commit 4c1b518

29 files changed

Lines changed: 2037 additions & 1006 deletions

File tree

common/src/java/org/apache/hadoop/hive/conf/HiveConf.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5106,6 +5106,11 @@ public static enum ConfVars {
51065106
LLAP_ZK_REGISTRY_NAMESPACE("hive.llap.zk.registry.namespace", null,
51075107
"In the LLAP ZooKeeper-based registry, overrides the ZK path namespace. Note that\n" +
51085108
"using this makes the path management (e.g. setting correct ACLs) your responsibility."),
5109+
LLAP_CLUSTER_ROUTING_RULES("hive.llap.cluster.routing.rules", "",
5110+
"Comma-separated rules mapping users/groups to LLAP cluster names.\n" +
5111+
"Format: user:<name>=<cluster>,group:<name>=<cluster>,default=<cluster>.\n" +
5112+
"Per-cluster configs are read from hive.llap.cluster.<cluster>.sessions.namespace\n" +
5113+
"and hive.llap.cluster.<cluster>.registry.namespace."),
51095114
// Note: do not rename to ..service.acl; Hadoop generates .hosts setting name from this,
51105115
// resulting in a collision with existing hive.llap.daemon.service.hosts and bizarre errors.
51115116
// These are read by Hadoop IPC, so you should check the usage and naming conventions (e.g.
@@ -5560,7 +5565,8 @@ public static enum ConfVars {
55605565
"hive.iceberg.allow.datafiles.in.table.location.only," +
55615566
"hive.hook.proto.base-directory," +
55625567
"hive.rewrite.data.policy," +
5563-
"hive.query.history.enabled", // Query History service is initialized on HS2 startup (HIVE-29170)
5568+
"hive.query.history.enabled," + // Query History service is initialized on HS2 startup (HIVE-29170)
5569+
"hive.llap.cluster.routing.rules",
55645570
"Comma separated list of configuration options which are immutable at runtime"),
55655571
HIVE_CONF_HIDDEN_LIST("hive.conf.hidden.list",
55665572
METASTORE_PWD.varname + "," + HIVE_SERVER2_SSL_KEYSTORE_PASSWORD.varname

itests/hive-unit/src/test/java/org/apache/hive/jdbc/TestRestrictedList.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ public static void startServices() throws Exception {
111111
addToExpectedRestrictedMap("hive.hook.proto.base-directory");
112112
addToExpectedRestrictedMap("hive.rewrite.data.policy");
113113
addToExpectedRestrictedMap("hive.query.history.enabled");
114+
addToExpectedRestrictedMap("hive.llap.cluster.routing.rules");
114115

115116
checkRestrictedListMatch();
116117
}

0 commit comments

Comments
 (0)