Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 19 additions & 1 deletion common/src/java/org/apache/hadoop/hive/conf/HiveConf.java
Original file line number Diff line number Diff line change
Expand Up @@ -3886,8 +3886,26 @@ public static enum ConfVars {
"hs2ActivePassiveHA",
"When HiveServer2 Active/Passive High Availability is enabled, uses this namespace for registering HS2\n" +
"instances with zookeeper"),
HIVE_SERVER2_ACTIVE_PASSIVE_HA_HEALTHCHECK_PORT("hive.server2.active.passive.ha.healthcheck.port", 11002,
HIVE_SERVER2_ACTIVE_PASSIVE_HA_HEALTHCHECK_PORT("hive.server2.active.passive.ha.healthcheck.port", 11002,
"The port the HiveServer2 ha-healthcheck web app will listen on"),

// Persistable session state store configs
HIVE_SERVER2_SESSION_STATE_STORE_CLASS("hive.server2.session.state.store.class",
"",
"Implementation class for the session state store. Empty means disabled. Options:\n" +
" org.apache.hive.service.cli.session.store.ZooKeeperSessionStateStore\n" +
" org.apache.hive.service.cli.session.store.RedisSessionStateStore"),
HIVE_SERVER2_SESSION_STATE_STORE_FETCH_STRATEGY("hive.server2.session.state.store.fetch.strategy",
"NEVER",
new StringSet("NEVER", "ALWAYS", "FETCH_WHEN_MISSING"),
"Session fetch strategy from shared store:\n" +
" NEVER - only use local session state\n" +
" ALWAYS - on every access, compare local lastAccessTime with remote; if remote is newer, re-hydrate\n" +
" FETCH_WHEN_MISSING - fetch from store only when session not found locally"),
HIVE_SERVER2_SESSION_STATE_STORE_TTL("hive.server2.session.state.store.ttl", "24h",
new TimeValidator(TimeUnit.SECONDS),
"TTL for session snapshots in the state store. Abandoned sessions auto-expire after this duration."),

HIVE_SERVER2_TEZ_INTERACTIVE_QUEUE("hive.server2.tez.interactive.queue", "",
"A single YARN queues to use for Hive Interactive sessions. When this is specified,\n" +
"workload management is enabled and used for these sessions."),
Expand Down
12 changes: 12 additions & 0 deletions itests/hive-unit/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,18 @@
<groupId>org.apache.hive</groupId>
<artifactId>hive-service</artifactId>
</dependency>
<dependency>
<groupId>org.apache.hive</groupId>
<artifactId>hive-service-session-store</artifactId>
<version>${project.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>redis.clients</groupId>
<artifactId>jedis</artifactId>
<version>${jedis.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.hive</groupId>
<artifactId>hive-llap-server</artifactId>
Expand Down
Loading
Loading