From 4fbcd4ffae23b537014fe74cda3eecbcbd6ffddf Mon Sep 17 00:00:00 2001 From: Ashutosh Chauhan Date: Wed, 27 Feb 2019 16:30:09 -0800 Subject: [PATCH] HIVE-21341 : Sensible defaults : hive.server2.idle.operation.timeout and hive.server2.idle.session.timeout are too high --- common/src/java/org/apache/hadoop/hive/conf/HiveConf.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/common/src/java/org/apache/hadoop/hive/conf/HiveConf.java b/common/src/java/org/apache/hadoop/hive/conf/HiveConf.java index ae44b083be..6cb5911541 100644 --- a/common/src/java/org/apache/hadoop/hive/conf/HiveConf.java +++ b/common/src/java/org/apache/hadoop/hive/conf/HiveConf.java @@ -3562,15 +3562,15 @@ private static void populateLlapDaemonVarsSet(Set llapDaemonVarsSetLocal "Whether enable loading UDFs from metastore on demand; this is mostly relevant for\n" + "HS2 and was the default behavior before Hive 1.2. Off by default."), - HIVE_SERVER2_SESSION_CHECK_INTERVAL("hive.server2.session.check.interval", "6h", + HIVE_SERVER2_SESSION_CHECK_INTERVAL("hive.server2.session.check.interval", "30m", new TimeValidator(TimeUnit.MILLISECONDS, 3000l, true, null, false), "The check interval for session/operation timeout, which can be disabled by setting to zero or negative value."), HIVE_SERVER2_CLOSE_SESSION_ON_DISCONNECT("hive.server2.close.session.on.disconnect", true, "Session will be closed when connection is closed. Set this to false to have session outlive its parent connection."), - HIVE_SERVER2_IDLE_SESSION_TIMEOUT("hive.server2.idle.session.timeout", "7d", + HIVE_SERVER2_IDLE_SESSION_TIMEOUT("hive.server2.idle.session.timeout", "4h", new TimeValidator(TimeUnit.MILLISECONDS), "Session will be closed when it's not accessed for this duration, which can be disabled by setting to zero or negative value."), - HIVE_SERVER2_IDLE_OPERATION_TIMEOUT("hive.server2.idle.operation.timeout", "5d", + HIVE_SERVER2_IDLE_OPERATION_TIMEOUT("hive.server2.idle.operation.timeout", "2h", new TimeValidator(TimeUnit.MILLISECONDS), "Operation will be closed when it's not accessed for this duration of time, which can be disabled by setting to zero value.\n" + " With positive value, it's checked for operations in terminal state only (FINISHED, CANCELED, CLOSED, ERROR).\n" + -- 2.14.3 (Apple Git-98)