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 a809f17..a3e6013 100644 --- a/common/src/java/org/apache/hadoop/hive/conf/HiveConf.java +++ b/common/src/java/org/apache/hadoop/hive/conf/HiveConf.java @@ -1818,17 +1818,20 @@ public void setSparkConfigUpdated(boolean isSparkConfigUpdated) { HIVE_SECURITY_COMMAND_WHITELIST("hive.security.command.whitelist", "set,reset,dfs,add,list,delete,reload,compile", "Comma separated list of non-SQL Hive commands users are authorized to execute"), - HIVE_SERVER2_SESSION_CHECK_INTERVAL("hive.server2.session.check.interval", "0ms", + HIVE_SERVER2_SESSION_CHECK_INTERVAL("hive.server2.session.check.interval", "14400000ms", 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_IDLE_SESSION_TIMEOUT("hive.server2.idle.session.timeout", "0ms", + "The check interval for session/operation timeout, which can be disabled by setting to zero or negative value.\n" + + " Default is once every 4 hours."), + HIVE_SERVER2_IDLE_SESSION_TIMEOUT("hive.server2.idle.session.timeout", "259200000ms", 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", "0ms", + "Session will be closed when it's not accessed for this duration, which can be disabled by setting to zero or negative value.\n" + + " Default timeout is 3 days."), + HIVE_SERVER2_IDLE_OPERATION_TIMEOUT("hive.server2.idle.operation.timeout", "-259200000ms", 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" + - " With negative value, it's checked for all of the operations regardless of state."), + " With positive value, it's checked for operations in terminal state only (FINISHED, CANCELED, CLOSED, ERROR).\n" + + " With negative value, it's checked for all of the operations regardless of state.\n" + + " Default timeout is 3 days and checked for operations in any state."), HIVE_CONF_RESTRICTED_LIST("hive.conf.restricted.list", "hive.security.authenticator.manager,hive.security.authorization.manager,hive.users.in.admin.role",