File tree Expand file tree Collapse file tree 3 files changed +5
-2
lines changed
common/src/java/org/apache/hadoop/hive/conf
itests/hive-unit/src/test/java/org/apache/hive/jdbc
ql/src/java/org/apache/hadoop/hive/ql/queryhistory Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -5643,7 +5643,8 @@ public static enum ConfVars {
5643
5643
"hive.zookeeper.ssl.truststore.type," +
5644
5644
"hive.iceberg.allow.datafiles.in.table.location.only," +
5645
5645
"hive.hook.proto.base-directory," +
5646
- "hive.rewrite.data.policy" ,
5646
+ "hive.rewrite.data.policy," +
5647
+ "hive.query.history.enabled" , // Query History service is initialized on HS2 startup (HIVE-29170)
5647
5648
"Comma separated list of configuration options which are immutable at runtime" ),
5648
5649
HIVE_CONF_HIDDEN_LIST ("hive.conf.hidden.list" ,
5649
5650
METASTORE_PWD .varname + "," + HIVE_SERVER2_SSL_KEYSTORE_PASSWORD .varname
Original file line number Diff line number Diff line change @@ -112,6 +112,7 @@ public static void startServices() throws Exception {
112
112
addToExpectedRestrictedMap ("hive.iceberg.allow.datafiles.in.table.location.only" );
113
113
addToExpectedRestrictedMap ("hive.hook.proto.base-directory" );
114
114
addToExpectedRestrictedMap ("hive.rewrite.data.policy" );
115
+ addToExpectedRestrictedMap ("hive.query.history.enabled" );
115
116
116
117
checkRestrictedListMatch ();
117
118
}
Original file line number Diff line number Diff line change @@ -127,7 +127,8 @@ public void start() {
127
127
128
128
public static QueryHistoryService getInstance () {
129
129
if (instance == null ) {
130
- throw new RuntimeException ("QueryHistoryService is not present when asked for the singleton instance" );
130
+ throw new RuntimeException ("QueryHistoryService is not present when asked for the singleton instance. " +
131
+ "This is not expected to happen if 'hive.query.history.enabled' is properly set in the HS2 config. " );
131
132
}
132
133
return instance ;
133
134
}
You can’t perform that action at this time.
0 commit comments